Skip to content

Instantly share code, notes, and snippets.

View ppolxda's full-sized avatar

ppolxda

View GitHub Profile
@ppolxda
ppolxda / fenlei.py
Last active January 19, 2024 01:56
简单的图片分类工具界面
import glob
import os
import shutil
import gradio as gr
inpath = "./fapiao-530/images/*.jpg"
out_dikou_path = "./fapiao-530/images/dikou"
out_fapiao_path = "./fapiao-530/images/fapiao"
@ppolxda
ppolxda / devel.md
Last active April 14, 2025 08:51
ubuntu proxy setting
@ppolxda
ppolxda / bl_transitex.ipynb
Last active June 9, 2021 08:05
文件内容提取样例
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

CV2方法总结.md

连通图 bool 二维数组 转 RGB 位图 --- 此方法是能测试用

    vpred2 = np.reshape(vpred, (1024, 1024, 1))
    vpred3 = np.append(vpred2, vpred2, axis=2)
    vpred3 = np.append(vpred3, vpred2, axis=2)
    vpred3[vpred3 > 0] = 255
    Image.fromarray(np.uint8(vpred3)).save("asdasd.png")
@ppolxda
ppolxda / .flake8
Last active November 30, 2022 10:04
poetry 初始化
[flake8]
max-line-length = 88
ignore = E501, E203, W503
@ppolxda
ppolxda / Dockerfile
Last active February 17, 2021 12:30
pyinstaller non-root build test
# ARG BASE_TAG=3.7-stretch
ARG BASE_TAG=3.8-buster
FROM python:${BASE_TAG}
ENV PYPI_URL=https://pypi.python.org/
ENV PYPI_INDEX_URL=https://pypi.douban.com/simple/
RUN useradd -m appuser
USER appuser
@ppolxda
ppolxda / appveyor.yml
Last active November 27, 2019 16:35
plyvel appveyor windows build
version: 1.1.0.build v{build}
skip_tags: true
init:
- cmd: ECHO Python %PYTHON_VERSION% (%PYTHON_ARCH%bit) from %PYTHON%
environment:
VCPKG_PATH: C:/tools/vcpkg/installed
matrix:
- platform: x86
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON: C:\\Python35