Skip to main content

云稷识别算法库

Project description

说明

ccnet算法执行之后,每个图片输出三个文件

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

run in python env

#安装本地环境 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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cropmirror_counting-0.0.2.tar.gz (61.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cropmirror_counting-0.0.2-py3-none-any.whl (67.8 kB view details)

Uploaded Python 3

File details

Details for the file cropmirror_counting-0.0.2.tar.gz.

File metadata

  • Download URL: cropmirror_counting-0.0.2.tar.gz
  • Upload date:
  • Size: 61.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.7 Windows/10

File hashes

Hashes for cropmirror_counting-0.0.2.tar.gz
Algorithm Hash digest
SHA256 af45a2f2d72389672807ae66d7e66a576f2185c04a7d49bcf1536e0937bd2564
MD5 0ff68121b7e88b1d871f7cdcd76c4c0f
BLAKE2b-256 0dacc7b9e590ac67996c4aed07ca50cbbc90b9e546fcad4c636614608cceabda

See more details on using hashes here.

File details

Details for the file cropmirror_counting-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cropmirror_counting-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d127ce1ef099c1b24a6369fb2ad224e472c70d71638eef96b822bfd4c8a5092
MD5 675bafaa68249a213effa1edbb6feea5
BLAKE2b-256 465cbbc5ad41f5d40fc217125b6856b1d7da65e10288acc2a488ae32bcdcca48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page