此时图像出人意料

问题描述 投票:-1回答:1

所以我正在研究NBIS。我试图使用mindtct。当我将它用于单个图像时,它可以正常工作,但当我尝试为数据集运行它时,我收到此错误,

此时的形象出人意料

我在网上查了一下,它说需要双倍的工作量。我试过了,它仍然给我同样的错误。目录都是正确的。我正在使用Windows 10

@echo off
Rem set the path of the photo directory
Set dirP= C:\Biometric\photos
Rem set the path for the mindtct
Set dirM= "C:\Rel_5.0.0\mindtct\bin\"mindtct.exe
Set image="*.png"
for %%A in image
do(
START dirM dirP C:\Biometric\Data
)
windows batch-file
1个回答
0
投票

您的代码中存在一些缺陷:

  • 要扩展变量,您需要将其括在%符号中(或使用DelayedExpansion封装!
  • 请参阅for /?的语法或查看http://ss64.com/nt/for.html
  • start命令使用双引号中的第一个参数作为窗口标题

@echo off
Rem set the path of the photo directory
Set "dirP=C:\Biometric\photos"
Rem set the path for the mindtct
Set "dirM=C:\Rel_5.0.0\mindtct\bin\mindtct.exe"
Set "image=*.png"
for %%A in (%image%) do START "" "%dirM%" "%dirP%" C:\Biometric\Data
© www.soinside.com 2019 - 2024. All rights reserved.