semvec/pypi-packages huggingface dataset:
nonebot-plugin-guess 0.1.9
nobebot2插件《猜猜看》
License: MIT
Requires Python: >=3.7.3,<4.0.0

<!-- [![tests](https://github.com/ffreemt/nonebot-plugin-guess-game/actions/workflows/routine-tests.yml/badge.svg)](https://github.com/ffreemt/nonebot-plugin-guess-game/actions/workflows/routine-tests.yml) -->
# nonebot-plugin-guess
[![nonebot2beta](https://img.shields.io/static/v1?label=nonebot&message=v2b2&color=green)](https://v2.nonebot.dev/)[![onebot](https://img.shields.io/static/v1?label=driver&message=onebot&color=green)](https://adapter-onebot.netlify.app/)[![python](https://img.shields.io/static/v1?label=python+&message=3.7%2B&color=blue)](https://img.shields.io/static/v1?label=python+&message=3.7%2B&color=blue)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[![PyPI version](https://badge.fury.io/py/nonebot-plugin-guess.svg)](https://badge.fury.io/py/nonebot-plugin-guess)

《猜猜看》nonebot2插件（Guess a name plugin for nonebot2）

Field-tested with ``nonebot 2.0.0b2``

## 安装

```bash
pip install nonebot-plugin-guess
# pip install nonebot-plugin-guess -U  # 升级到最新版
```
or
```bash
poetry add nonebot-plugin-guess
# poetry add nonebot-plugin-guess@latest   # 升级到最新版
```
or
```
poetry add git+https://github.com/ffreemt/nonebot-plugin-guess-game.git
```
or
```
pip install git+https://github.com/ffreemt/nonebot-plugin-guess-game.git
```
or clone [https://github.com/ffreemt/nonebot-plugin-guess-game](https://github.com/ffreemt/nonebot-plugin-guess-game) and install from the repo.

## 使用
```python
# bot.py
...
nonebot.load_plugin("nonebot_plugin_guess")
...
```
然后在机器人所在的群里或给机器人发私信 `/guess` （或cai, 猜猜看, 猜）即可开始“猜猜看”游戏。

### 定制

插件自带的游戏数据仅限“猜城市名” 及固定的城市名："上海", "北京", "广州", "深圳", "香港", "雅典", "西安", "长沙", "多伦多", "旧金山", "Zurich", "约翰内斯堡"; 最多猜的次数： 4

如需自己定制游戏，可在`.env` 里加入：
```bash
# .env
guess_name = "人名"
guess_max = 3
guess_name_list = ["贾宝玉", "林黛玉"，]
```
a-cv2-imshow-thread 0.11
Solution for the window - not responding problem with cv2.imshow()
License: MIT
Keywords: OpenCV,cv2,imshow


### Solution for the "window - not responding" problem with cv2.imshow()

```python
pip install a-cv2-imshow-thread
```

```python
    Usage:

    import glob
    import os
    from a_cv2_imshow_thread import add_imshow_thread_to_cv2 
    add_imshow_thread_to_cv2() #monkey patching
    import cv2
    image_background_folder=r'C:\yolovtest\backgroundimages'
    pics=[cv2.imread(x) for x in glob.glob(f'{image_background_folder}{os.sep}*.png')]
    cv2.imshow_thread( image=pics[0], window_name='screen1',sleep_time=None, quit_key='q') #single picture
    cv2.imshow_thread( image=pics, window_name='screen1',sleep_time=.2, quit_key='e') #sequence of pics like a video clip

        Parameters:
            image: Union[list, np.ndarray]
                You can pass a list of images or a single image
            window_name: str
                Window title
                (default = "")
            sleep_time: Union[float, int, None] = None
                Useful if you have an image sequence.
                If you pass None, you will have to press the quit_key to continue
                (default = None)
            quit_key: str = "q"
                key to close the window
        Returns:
            None
```