serizba / cppflow

Run TensorFlow models in C++ without installation and without Bazel
https://serizba.github.io/cppflow/
MIT License
779 stars 177 forks source link

cpp::decode_video? #168

Closed msj121 closed 2 years ago

msj121 commented 2 years ago

I see there are a few different "decode" methods like "decode_png". Is there a way to run a cppflow model frame by frame using opencv on a video file/stream?

ljn917 commented 2 years ago

Does tensorflow provide those ops? The decode_* ops are from tensorflow, e.g. https://www.tensorflow.org/api_docs/python/tf/io/decode_png

Otherwise, you need to convert the videos using OpenCV into the image formats that tensorflow supports.

msj121 commented 2 years ago

Thanks - Don't see it there - will work to convert opencv to image formats and give that a try.