Telecommunication-Telemedia-Assessment / SITI

Command-line tool for calculating Spatial Information / Temporal Information according to ITU-T P.910
Other
38 stars 12 forks source link

Doesn't output text #21

Closed bael94 closed 3 years ago

bael94 commented 3 years ago

The results in terminal aren't text type, and doesn't get saved to txt files.

slhck commented 3 years ago

I am not sure what you mean by that. Please show which commands you ran, what you expected, and what output you got instead.

Note that this C++/OpenCV version is basically deprecated. This repository contains a Python script which however does not output fully conformant values.

You can find a more recent Python CLI version here, or a Python library version here.

bael94 commented 3 years ago

SITI -i input ... > analysis.txt The txt file is returned empty eventhough the analysis results are printed in shell. I also tried also via python's subprocess, and the output of the process is always empty.

slhck commented 3 years ago

With the C++ version, the output is written to stderr. Please use 2> analysis.txt.

Alternatively, with the Python implementation from here, it writes to stdout:

siti /path/to/file.mp4 -of csv > output.csv 
bael94 commented 3 years ago

Oh super, yes it works now. I'll also try using the python implementation. Thanks