# 舰船识别大数据系统 **Repository Path**: ESword/ship_detection ## Basic Information - **Project Name**: 舰船识别大数据系统 - **Description**: 舰船识别大数据系统 AIS+目标检测 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 8 - **Forks**: 1 - **Created**: 2022-07-03 - **Last Updated**: 2024-11-05 ## Categories & Tags **Categories**: cv **Tags**: None ## README # 数据库字段解释 - detection(检测船只表) pic_name : 遥感图像名,一般情况tif文件路径为 {pic_name}/{pic_name}.tif 经纬度与框bbox: float,前端根据需求截取 subp_path : 带标记框的子图文件名,路径一般为{pic_name}/{sub_path} size : 单位为米m - tiff_information(tiff图像信息) 四个点的经纬度 4 * 2 = 8 个字段 # 环境准备: ## gdal安装 ### win: [Archived: Python Extension Packages for Windows - Christoph Gohlke (uci.edu)](https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal) 根据python版本和位数选择 下载后 pip install ### linux ``` sudo apt-get install -y software-properties-common add-apt-repository ppa:ubuntugis/ppa sudo apt-get update sudo apt-get install -y gdal-bin sudo apt-get install -y libgdal-dev export CPLUS_INCLUDE_PATH=/usr/include/gdal export C_INCLUDE_PATH=/usr/include/gdal pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com GDAL==$(gdal-config --version) ``` 如果卡顿修改源: `sed -i 's/\/\/.*\/ubuntu/\/\/mirrors.aliyun.com\/ubuntu/g' /etc/apt/sources.list` 修改ppa源 `cd /etc/apt/sources.list.d` 将其中的 http://ppa.launchpad.net 替换为 http://launchpad.proxy.ustclug.org 改完后生效 `sudo apt-get update ` # 报错解决 - ImportError: numpy.core.multiarray failed to import 错误 重新安装numpy - Couldn‘t load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompati 重新安装torch和torchvision https://pytorch.org/get-started/locally/