91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

GF3 SS模式船只識別,使用卷積神經(jīng)網(wǎng)絡(luò)

資源截圖

代碼片段和文件信息

import?os
from?PIL?import?Image

def?splitimage(src?rownum?colnum?dstpath):
????img?=?Image.open(src)
????w?h?=?img.size
????if?rownum?<=?h?and?colnum?<=?w:
????????print(‘Original?image?info:?%sx%s?%s?%s‘?%?(w?h?img.format?img.mode))
????????print(‘開始處理圖片切割?請稍候...‘)

????????s?=?os.path.split(src)
????????if?dstpath?==?‘‘:
????????????dstpath?=?s[0]
????????fn?=?s[1].split(‘.‘)
????????basename?=?fn[0]
????????ext?=?fn[-1]

????????num?=?0
????????rowheight?=?h?//?rownum
????????colwidth?=?w?//?colnum
????????for?r?in?range(rowheight):
????????????for?c?in?range(colwidth):
????????????????box?=?(c?*?colnum?r?*?rownum?(c?+?1)?*?colnum?(r?+?1)?*?rownum)
????????????????img.crop(box).save(os.path.join(dstpath?basename?+‘_‘?+?str(c?*?colnum)+‘_‘+str(r*rownum)?+?‘_‘?+?str(num)?+?

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-02-02?07:26??Ship_Detection-master\
?????目錄???????????0??2018-02-02?07:26??Ship_Detection-master\Code\
?????文件????????3067??2018-02-02?07:26??Ship_Detection-master\Code\prediction.py
?????文件????????3942??2018-02-02?07:26??Ship_Detection-master\GF3Tiff2Png.py
?????文件??????????69??2018-02-02?07:26??Ship_Detection-master\README.md
?????文件????????1701??2018-02-02?07:26??Ship_Detection-master\batchSplit.py
?????目錄???????????0??2018-02-02?07:26??Ship_Detection-master\code\
?????文件????????4186??2018-02-02?07:26??Ship_Detection-master\code\input_data.py
?????文件????????6794??2018-02-02?07:26??Ship_Detection-master\code\model.py
?????文件????????3007??2018-02-02?07:26??Ship_Detection-master\code\prediction.py
?????文件????????2694??2018-02-02?07:26??Ship_Detection-master\code\train.py
?????文件????????1743??2018-02-02?07:26??Ship_Detection-master\fill_image_100x100.py

評論

共有 條評論