This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code based on BITLUNI's ESP32-cam work | |
// the size you want to downsample to | |
int newWidth = 40; | |
int newHeight = 30; | |
int DSF = 160 / newWidth; // Down Sampling Factor - ideally DSF should be 4, 8 or 16.. so that the bitshifting happening below is accurate | |
void downSample(unsigned char *frame) | |
{ |