nischi / MMM-Face-Reco-DNN

Face recognition with opencv and deep neural network
MIT License
91 stars 46 forks source link

Stringify stderr output to avoid JSON parsing errors #21

Closed paultranvan closed 4 years ago

paultranvan commented 4 years ago

First, thanks for this module, I recently started to play with it and felt like I could contribute :)

As mentioned in this pyshell issue, when using {mode: 'json'}, a JSON parsing error is thrown instead of being returned through the callback, such as SyntaxError: Unexpected token T in JSON at position 0. A workaround for this is to stringify the stderr output to correctly retrieve the python error.

nischi commented 4 years ago

oh that sounds awesome. Thanks a lot @Gara64