{"repo":"0x09/resdet","free":true,"listed":false,"github":"https://github.com/0x09/resdet","clone":"git clone https://github.com/0x09/resdet.git","description":"Detect source resolution of upscaled images and videos","language":"C","stars":312,"topics":["image-processing","image-analysis","signal-processing","fourier-analysis","image"],"license":null,"category":"media-processing","readme_excerpt":"resdet - Detect source resolution of upscaled images and videos. resdet is a command-line tool and C library which attempts to detect upscaling in images or videos and identify the original resolution upscaled from. resdet has an online version at https://0x09.net/resdet. Dependencies resdet bundles KISS FFT as its FFT implementation (permissively licensed) but can use FFTW (GPL, potentially faster) if available. Image loaders are available using any or all of libpng, libjpeg, MagickWand, and FFmpeg. libresdet can be used completely standalone with built-in readers for PFM, PGM, and Y4M or with the client supplying image data. Building The tools and supplied build scripts target a generic nix environment with bash, pkg-config, GNU make, and a GCC compatible C compiler using an autotools-like build process: ./configure make make install see configure --help for options Examples Resize an image with ImageMagick and detect it: $ magick blue marble 2012.png -resize 150% resized.png $ resdet resized.png given: 768x768 best guess: 512x512 all width height 512 (93.34%) 512 (93.25%) Just test if an image has been upscaled: $ resdet -v0 resized.png && echo upscaled upscaled See resdet -h for more options. API resdet can be used as a library by including resdet.h and linking with libresdet. To install the library, use make install-lib after building. A pkg-config file is included; linker flags can be gotten via pkg-config --libs --static resdet API documentation is available in the doc","default_branch":null,"files":null,"tree":[],"storefront":"/r/0x09","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/0x09/resdet/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}