From 5ba5a0bd8b0653fcbedeff0f11f07ff26bc35c8e Mon Sep 17 00:00:00 2001 From: Deepanshu1114 <96886472+Deepanshu1114@users.noreply.github.com> Date: Tue, 18 Oct 2022 22:02:16 +0530 Subject: [PATCH] Create readtheimage.c to read the image of the inserted QR CODE --- readtheimage.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 readtheimage.c diff --git a/readtheimage.c b/readtheimage.c new file mode 100644 index 0000000..569105f --- /dev/null +++ b/readtheimage.c @@ -0,0 +1,14 @@ +#include + +#define STB_IMAGE_IMPLEMENTATION +#include "stb_image.h" + +int main() { + int width, height, bpp; + + uint8_t* rgb_image = stbi_load("image.png", &width, &height, &bpp, 3); + + stbi_image_free(rgb_image); + + return 0; +}