0

我想将 openalpr json 格式的输出保存到用户定义目录中的 json 或 text 或 csv 文件中。

我尝试了以下,正在建立连接,数据输出出现在命令提示符下,但是 \output\recognitionresults.json 仍然不存在

alpr -c eu --clock -j http://192.168.137.78:4747/mjpegfeed?640x480 \output\recognitionresults.json

在此处输入图像描述

为了将输出保存到文件中,有什么要添加到命令脚本中的?

Environment: Windows 10 

OpenALPR download link: https://github.com/openalpr/openalpr/releases

谢谢!

4

1 回答 1

1

根据文档,您必须将屏幕输出重定向到文件

此命令处理 /source/imagefilelist.txt 中提供的图像文件列表,并将 JSON 结果写入 /out/recognitionresults.txt。

$ alpr -j stdin < /source/imagefilelist.txt > /out/recognitionresults.txt

所以这应该这样做:

alpr -c eu --clock -j http://192.168.137.78:4747/mjpegfeed?640x480 > \output\recognitionresults.json
于 2018-07-19T11:05:58.990 回答