semvec/pypi-packages huggingface dataset:
sphinxnotes-strike 2.0
An extension that adds strikethrough text support to Sphinx
Requires Python: >=3.12
Keywords: sphinx, extension, documentation, sphinxnotes

.. This file is generated from sphinx-notes/cookiecutter.
   You need to consider modifying the TEMPLATE or modifying THIS FILE.

==================
sphinxnotes-strike
==================

.. |docs| image:: https://img.shields.io/github/deployments/sphinx-notes/strike/github-pages
   :target: https://sphinx.silverrainz.me/strike
   :alt: Documentation Status
.. |license| image:: https://img.shields.io/github/license/sphinx-notes/strike
   :target: https://github.com/sphinx-notes/strike/blob/master/LICENSE
   :alt: Open Source License
.. |pypi| image:: https://img.shields.io/pypi/v/sphinxnotes-strike.svg
   :target: https://pypi.python.org/pypi/sphinxnotes-strike
   :alt: PyPI Package
.. |download| image:: https://img.shields.io/pypi/dm/sphinxnotes-strike
   :target: https://pypistats.org/packages/sphinxnotes-strike
   :alt: PyPI Package Downloads

|docs| |license| |pypi| |download|

An extension that adds strikethrough text support to Sphinx.

.. INTRODUCTION START 
   (MUST written in standard reStructuredText, without Sphinx stuff)

.. INTRODUCTION END

Please refer to Documentation_ for more details.

.. _Documentation: https://sphinx.silverrainz.me/strike
timer-tool 1.2.4.3
A Python timer module, containing class Timer() and decorator function timer(), as well as some useful functions that can be used for performance analysis.一个Python计时器模块, 其中包含Timer()类和timer()装饰器, 以及一些相关的有用函数, 可用于程序性能分析。
Keywords: timer, performance, analysis, 计时器, 性能

模块名称 MODULE NAME
====================

::

    timer_tool

简介 DESCRIPTION
================

::

    A Python timer module, containing class Timer() and decorator function timer(), 
    as well as some useful functions that can be used for performance analysis.
    一个Python计时器模块, 其中包含Timer()类和timer()装饰器, 以及一些有用的相关函数, 可用于程序性能分析。

包含的函数和类 Functions & Classes:
===================================

类:

class Timer
"""""""""""
    一个计时器类。A timer class.
    
    start()
        开始计时。此方法在Timer类初始化时会被自动调用。
		Start timing. This method will be automatically called when the Timer class is initialized.
    
    gettime()
        获取从计时开始到现在的时间。
		Get the elapsed time since the timer started.
    
    printtime(fmt_str="用时:{:.8f}秒")
        打印出从计时开始到现在的时间, 也就是gettime()获取的值。
		Print the time elapsed since the timer started, which is the value obtained from gettime().

函数: 

timer(msg=None, file=sys.stdout, flush=False)::

    一个装饰器, 为某个函数或生成器计时 (比使用Timer类更简洁)。
	A wrapper for timing a function or a generator that is briefer than the Timer class.
    用法:@timer(msg="用时:{time}秒")
    def func(args):
        print("Hello World!")
    
    #或:
    @timer
    def func(args):
        print("Hello World!")

示例代码 EXAMPLES
=================

示例1:

.. code-block:: python

    import timer_tool
    t=timer.Timer() #初始化Timer对象
    do_something()
    t.printtime() #输出执行do_something()所用时间 (也可使用t.gettime()获取所用时间)

示例2:

.. code-block:: python

    #退出with语句时自动打印出所用时间。
    import timer_tool
    with timer.Timer(): #在这里开始计时
        do_something()

示例3:

.. code-block:: python

    # 为某个函数计时
    from timer_tool import timer
    @timer
    def func():
        print("Hello World!")

示例4:

.. code-block:: python

    # 程序精确地延迟一段时间
    from time import sleep
    from timer_tool import sleep as sleep2
    sleep(0.0001)
    sleep2(0.0001)
    # 经测试表明, time模块的sleep()函数与本模块的函数相比, 有明显的延迟

版本 VERSION
============

    1.2.4.3

作者 AUTHOR
===========

    ekcbw
shape-matcher 3.1.0
Edge-based object matching using Chamfer distance for CAPTCHA solving
Requires Python: >=3.8
Keywords: captcha, shape-matching, chamfer-distance, computer-vision, tiktok

# Shape Matcher

Edge-based object matching using Chamfer distance. Finds the most similar pair of objects in an image.

## Algorithm

1. **LAB Chroma Mask** - Separates colored objects from background (catches faint colors, ignores shadows)
2. **Binary Patch Normalization** - Converts each object contour to a square binary patch
3. **Edge Extraction** - Gets silhouette edge from binary patch (no fake edges from shading)
4. **Chamfer Distance** - Compares edges with rotation sweep for rotation invariance

## Installation

```bash
pip install -r requirements.txt
```

## Usage

### CLI

```bash
# Basic usage
python -m shape_matcher --image examples/image.png --out result.png

# With options
python -m shape_matcher -i examples/image.png -o result.png --chroma_thr 5.0 --angles_step 10 --debug
```

### Python API

```python
from shape_matcher import Config, MatcherFactory
import cv2

# Load image
img = cv2.imread("examples/image.png")

# Create matcher
config = Config.default()
matcher = MatcherFactory.create(config)

# Process
objects, best_match, result_img = matcher.process(img)

if best_match:
    print(f"Best match: Object {best_match.idx1} <-> Object {best_match.idx2}")
    print(f"Chamfer distance: {best_match.chamfer_distance:.4f}")
```

## Options

| Option | Default | Description |
|--------|---------|-------------|
| `--chroma_thr` | 6.0 | LAB chroma threshold (lower = catch fainter colors) |
| `--min_area` | 300 | Minimum contour area |
| `--min_wh` | 20 | Minimum bbox width/height |
| `--min_hole_area_ratio` | 0.02 | Minimum hole area ratio vs parent contour |
| `--hole_mismatch_penalty` | 2.0 | Penalty per hole-count mismatch |
| `--hole_area_weight` | 1.0 | Weight for hole area ratio difference |
| `--hu_weight` | 0.6 | Weight for Hu moment distance |
| `--angles_step` | 15 | Rotation step in degrees (smaller = more accurate) |
| `--patch` | 96 | Normalized patch size |
| `--debug` | False | Enable debug logging |

## Project Structure

```
TikTok-Captcha-Solver/
├── shape_matcher/          # Main package
│   ├── __init__.py         # Package exports
│   ├── __main__.py         # CLI runner
│   ├── config.py           # Configuration classes
│   ├── models.py           # DetectedObject, MatchResult
│   ├── protocols.py        # Abstract interfaces
│   ├── mask.py             # LABChromaMaskGenerator
│   ├── patch.py            # PatchProcessor
│   ├── chamfer.py          # ChamferDistance
│   ├── extractor.py        # ContourObjectExtractor
│   ├── similarity.py       # EdgeChamferSimilarity
│   ├── renderer.py         # DefaultResultRenderer
│   ├── factory.py          # MatcherFactory
│   └── service.py          # MatcherService
├── examples/               # Test images
├── requirements.txt
└── README.md
```

## License

MIT