semvec/pypi-packages huggingface dataset:
libpastelid 0.4
Python bindings for the libpastelid C++ library - PastelID signer/verifier
Requires Python: >=3.9

# Building and Installing the `libpastelid` Python Package

This guide outlines the steps to build and install the `libpastelid` Python package.

## Prerequisites

Ensure you have the following dependencies installed on your Ubuntu system:

1. **Install Python 3 and pip**:
   ```shell
   sudo apt-get update
   sudo apt-get install -y python3 python3-pip
   ```

2. **Install Development Tools and Libraries**:
   ```shell
   sudo apt-get install -y python3-dev build-essential cmake
   ```

3. **Install Required Python Packages**:
   Install the required Python packages listed in `Requirements.txt`:
   ```shell
   pip install -r Requirements.txt
   ```

## Building the Package

### 1. Build the C++ libraries - See top level README

The CMake that builds libraries will also generate the `setup.py` file from `setup.py.in`.

### 2. Build the Wheel

Navigate to the generated `setup.py` file and build the wheel:
```
cd python_bindings
python setup.py bdist_wheel
```

### 3. Install the Package

After building the wheel, you can install the package manually:
```
pip install dist/libpastelid-0.1-cp36-cp36m-linux_x86_64.whl
```

## Summary

1. Install the necessary system and Python dependencies.
2. Use CMake to generate the `setup.py` file.
3. Build the wheel using `python setup.py bdist_wheel`.
4. Install the generated wheel using `pip install`.
odc-playwright-utils 0.1.0
A set of utility functions for Playwright-based UI automation
Requires Python: >=3.6

# My ODC Playwright Utils

This package provides a set of utility functions for UI automation based on Playwright. It encapsulates common methods such as element interaction, waiting for conditions, and page navigation to simplify automated testing tasks.

## Features

- Wait for elements to be visible or clickable
- Interact with input fields, dropdowns, and other web elements
- Manage page navigation and URLs
- Take screenshots, upload files, and more

## Installation

```bash
pip install odc_playwright_utils
```

## Dependencies

- `playwright==1.45.1`

## Usage

Here's an example of how to use the package:
```python
from module.playwright_utils import PlaywrightUtils
from module.WebDriverManager import WebDriverManager

# Initialize the browser and page
page = WebDriverManager.get_page()

# Use PlaywrightUtils to interact with elements
utils = PlaywrightUtils(page)
utils.click("#submit-button")
ftd-cherub 0.1
Just use for myself
Requires Python: >=3.6

# How to use
```python
from ftd.module.detector import Detector

# 解析yaml配置文件
cfg = LoadYaml(opt.yaml)    
print(cfg) 
device=torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
model=Detector(cfg.category_num,True).to(device)

# 数据预处理
ori_img = cv2.imread(opt.img)
res_img = cv2.resize(ori_img, (cfg.input_width, cfg.input_height), interpolation = cv2.INTER_LINEAR) 
img = res_img.reshape(1, cfg.input_height, cfg.input_width, 3)
img = torch.from_numpy(img.transpose(0, 3, 1, 2))
img = img.to(device).float() / 255.0

# 模型推理
start = time.perf_counter()
preds = model(img)
end = time.perf_counter()
time = (end - start) * 1000.
print("forward time:%fms"%time)

# 特征图后处理
output = handle_preds(preds, device, opt.thresh)

# 加载label names
LABEL_NAMES = []
with open(cfg.names, 'r') as f:
    for line in f.readlines():
        LABEL_NAMES.append(line.strip())

H, W, _ = ori_img.shape
scale_h, scale_w = H / cfg.input_height, W / cfg.input_width

# 绘制预测框
for box in output[0]:
    print(box)
    box = box.tolist()
    
    obj_score = box[4]
    category = LABEL_NAMES[int(box[5])]

    x1, y1 = int(box[0] * W), int(box[1] * H)
    x2, y2 = int(box[2] * W), int(box[3] * H)

    cv2.rectangle(ori_img, (x1, y1), (x2, y2), (255, 255, 0), 2)
    cv2.putText(ori_img, '%.2f' % obj_score, (x1, y1 - 5), 0, 0.7, (0, 255, 0), 2)	
    cv2.putText(ori_img, category, (x1, y1 - 25), 0, 0.7, (0, 255, 0), 2)

cv2.imwrite("result.png", ori_img)

```