This repository contains the source code to compile an image upscale dynamic library for upscaling images. The library upscales the supplied image by a factor of 2 using machine learning models. This library should compile on Linux, MacOS, and Windows. Note: GPU support is only on Linux and Windows.
Tensorflow c https://www.tensorflow.org/install/lang_c
Make sure Tensorflow c is installed on your machine then link to that library when compiling (similar to below).
gcc -I /usr/local/include/ -L /usr/local/lib/ -Wall -fPIC -c src/entry_functions.c -ltensorflow -o entry_functions.o
gcc -shared -o image-upscale.so entry_functions.o
The data supplied through the InputData.data void pointer MUST BE CONTIGUOUS MEMORY. Arrays of pointers will not ingest properly.
This repository is a c binding of the work image-super-resolution. https://github.com/idealo/image-super-resolution