semvec/pypi-packages huggingface dataset:
claude-transcriber 0.3.1
Transcribe Claude Code JSONL logs to human-readable text
License: MIT
Requires Python: >=3.10
Keywords: claude, anthropic, transcription, logs

# claude-transcriber

Transcribe Claude Code JSONL logs to human-readable text.

## Installation

```bash
pip install claude-transcriber
```

## CLI Usage

```bash
# Transcribe a session log
claude-transcriber ~/.claude/projects/-Users-you-code-myproject/SESSION_ID.jsonl

# Save to file
claude-transcriber session.jsonl -o transcript.txt

# From stdin
cat session.jsonl | claude-transcriber
```

## Library Usage

```python
from claude_transcriber import Transcriber, transcribe_file

# Transcribe a whole file
text = transcribe_file("session.jsonl")

# Or record by record
t = Transcriber()
for record in records:
    result = t.transcribe(record)
    if result:
        print(result)
```

## Output Format

The output matches Claude Code's `/export` format:

- `⏺` prefix for assistant messages
- `❯` prefix for user messages
- Tool calls shown as `⏺ ToolName(args...)`
- Tool output shown with `⎿` continuation markers

## License

MIT
scribble-from-segmentation 0.1.0
Generate scribble annotations from segmentation masks
License: MIT
Requires Python: >=3.8
Keywords: computer-vision, image-annotation, image-processing, machine-learning, segmentation

# Scribble From Segmentation

Generate scribble annotations from segmentation masks using advanced image processing techniques.

## Overview

This tool converts segmentation masks into scribble annotations by applying morphological operations and skeletonization. It's useful for creating weak supervision labels or simplifying segmentation annotations for training purposes.

The tool:

- Processes segmentation masks and extracts individual classes
- Automatically detects and skips background classes
- Applies morphological operations to refine class boundaries
- Skeletonizes regions to create scribble-like annotations
- Preserves the original color information for each class

## Installation

Install from PyPI:

```bash
pip install scribble-from-segmentation
```

Or install from source:

```bash
pip install -e .
```

## Usage

Use the command-line interface to process segmentation masks:

```bash
scribble-from-segmentation --input_dir /path/to/segmentation/masks --output_dir /path/to/output/scribbles
```

### Arguments

- `--input_dir` (required): Path to directory containing segmentation mask images
- `--output_dir` (required): Path to directory where scribble annotations will be saved

### Supported Image Formats

- PNG
- JPG/JPEG
- GIF
- BMP
- TIF

## Python API

You can also use the tool directly in your Python code:

```python
from scribble_from_segmentation import generate_scribbles_from_segmentations

# Generate scribbles from segmentation masks
generate_scribbles_from_segmentations(
    input_dir="/path/to/segmentation/masks",
    output_dir="/path/to/output/scribbles"
)
```

## Requirements

- Python >= 3.8
- numpy
- opencv-python
- Pillow
- scikit-image

## License

MIT License

## Author

Alex Senden