Skip to content
Snippets Groups Projects
Commit 2091400a authored by Vladislav Vlasuk's avatar Vladislav Vlasuk
Browse files

test

parent 2452cc01
Branches
No related tags found
No related merge requests found
......@@ -21,18 +21,15 @@ void loop()
{
// Bild auslesen
camera.take_picture(&image);
Serial.printf("Bildformat vor Skalierung: %ix%i \n", image.width, image.height);
// Bild skalieren und ausgeben
byte factor = 2;
esp_image_t img_scaled;
camera.rescale_img(&image, &img_scaled, factor, true);
Serial.printf("Bildformat nach Skalierung(1/%i): %ix% i \n", factor, img_scaled.width, img_scaled.height);
Serial.println(image.width);
Serial.println(image.height);
for(int pixel = 0; pixel < (image.width*image.height);pixel++){
Serial.print(image.buf[pixel]);
if(pixel%100 == 0)Serial.println(" ");
}
// Speicher freigeben
camera.free_buffer(&image);
// Bildschirmausgabe
Serial.println("\n\n");delay(1);
Serial.println("\n\n");delay(2000);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment