我在这里有一段代码:
# resize images and put it back
output_img = np.ones_like(img) * 255
resize_ratio = 0.5
for (i, num_im) in enumerate(number_imgs):
num_im = cv2.resize(num_im, (0,0), fx=resize_ratio, fy=resize_ratio)
(img_h, img_w) = num_im.shape[:2]
# x1, y1, x2, y2
btm_x, btm_y = number_btm_mid_pos[i]
x1 = btm_x - int(img_w / 2)
y1 = btm_y - img_h
x2 = x1 + img_w
y2 = y1 + img_h
output_img[y1:y2, x1:x2] = num_im
cv2.imshow("Output Image", output_img)
cv2.imshow("Original Input", img)
cv2.waitKey()
执行时,它输出@echo off
set /p "filePath=Enter file path>"
if exist "%filePath%" set /p string=< %filePath%
>nul chcp 950
echo testString
:Loop
和cho is not recongnized...
。一些(不是全部!)命令的第一个字符被修剪。另外,我尝试删除Loop is not recognized as...
,脚本工作正常,但我需要它。请协助我找出背后的原因和解决方案。谢谢。
以下是一些系统规范: