Skip to content

Instantly share code, notes, and snippets.

View PritishSehzpaul's full-sized avatar
🦅
Ready

Pritish Sehzpaul PritishSehzpaul

🦅
Ready
View GitHub Profile
@kylehounslow
kylehounslow / client.py
Last active August 22, 2023 19:58
Send and receive images using Flask, Numpy and OpenCV
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'
@philip-goh
philip-goh / screen_grab.cpp
Created October 10, 2012 13:54
Take a screenshot and write it out as a JPEG in C++ on Windows
#include <iostream>
#include <windows.h>
#include <gdiplus.h>
#include <memory>
using namespace Gdiplus;
using namespace std;
int GetEncoderClsid(const WCHAR* format, CLSID* pClsid)
{