semvec/pypi-packages huggingface dataset:
cropmirror-counting 0.0.3
云稷识别算法库
License: MIT
Requires Python: <4,>=3.10


### 说明
ccnet算法执行之后，每个图片输出三个文件

- detected_pts.txt json文件，标识了识别的标点数量和位置。
- result.tif 打上结果标点之后的，geotiff格式的原始图片。
- result.jpg 压缩之后便于web展示的图片。

### run in python env

```shell
#安装本地环境 requirements.txt CCNet_3.8.env.*,
#项目中CCNet_3.8.env.* 是linux的，可能不适用于windows、macos

conda activate CCNet #或者使用本地环境

python main.py --algorithm ccnet --model-file test/ccnet/model/mouse_hole.pth --input-path test/ccnet/images/mouse --output test/ccnet/output

python main.py --algorithm yolo --model-file test/yolo/model/sheep_counting.pt --input-path test/yolo/images --output test/yolo/output
```


### run in docker

```shell
docker run -ti --rm -v ./test:/test --entrypoint /bin/bash harbor.hzw.ruihudata.cn/cropmirror/counting_model:v0.7

conda activate CCNet

python counting/main.py --algorithm ccnet --model-file /test/ccnet/model/mouse_hole.pth --input-path /test/ccnet/images/mouse --output /test/ccnet/output

python counting/main.py --algorithm yolo --model-file /test/yolo/model/sheep_counting.pt --input-path /test/yolo/images --output /test/yolo/output
```

# windows 10

```shell
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
conda install opencv
pip install opencv-contrib-python
pip install ultralytics
pip install scipy
#https://github.com/cgohlke/geospatial-wheels/releases/tag/v2024.2.18
```
localpkg 0.2
local package creator
License: MIT

# localpkg: Create OS Packages from pip-installed Python Software

`localpkg` is a tool for converting Python packages into native OS package formats (e.g., .rpm, .deb, .apk, etc.).
It automatically bundles dependencies and helps you package your Python projects, making distribution and installation on various operating systems simple and efficient.

Main features:

- Convert Python packages to native package formats.
- Simplify distribution and installation across different package systems.
- Support local package management.

## install

- (pip)
    - `pip install localpkg`
    - or `pip install git+https://github.com/wtnb75/localpkg/`
- (alpine)
    - `wget https://wtnb75.github.io/localpkg/pkg/localpkg-0.0.1-r1.apk`
    - `apk add localpkg-0.0.1-r1.apk --allow-untrusted`
- (debian/ubuntu)
    - `curl -LO https://wtnb75.github.io/localpkg/pkg/localpkg_0.0.1_all.deb`
    - `apt install ./localpkg_0.0.1_all.deb`
- (redhat variant)
    - `dnf localinstall https://wtnb75.github.io/localpkg/pkg/localpkg-0.0.1-1.noarch.rpm`
- (archlinux)
    - `curl -LO https://wtnb75.github.io/localpkg/pkg/localpkg-0.0.1-1-x86_64.pkg.tar.zst`
    - `pacman -U ./localpkg-0.0.1-1-x86_64.pkg.tar.zst`

## Usage

- create tarball
    - localpkg tar --name (pkgname) --version (version) -- (pip arguments)
- create .apk
    - localpkg apk --name (pkgname) --version (version) --key (private-keyfile) -- (pip arguments)
- create .deb
    - localpkg deb --name (pkgname) --version (version) -- (pip arguments)
- create .rpm
    - localpkg rpm --name (pkgname) --version (version) -- (pip arguments)
- create pacman
    - localpkg pacman --name (pkgname) --version (version) -- (pip arguments)