arkhipenko / esp32-cam-mjpeg-multiclient

ESP32 MJPEG Multiclient Streaming Server
BSD 3-Clause "New" or "Revised" License
228 stars 60 forks source link

How to rotate the screen ? #12

Closed yukiloh closed 2 years ago

yukiloh commented 2 years ago

Likedocument.body.style.transform = "rotate(90deg)"; How to change the code? Thanks

arkhipenko commented 2 years ago

There are no 90 or 270 degree transforms. Only vertical/horizons flips are available to the best of my knowledge (sample code located and commented out right after the camera initialization)

serbasan commented 6 months ago

Hello. I can't find where to rotate the image 180 degrees. Could you help me? Thank you

serbasan commented 6 months ago

Hello. I answer myself. It would be here:

if (cam.init(config) != ESP_OK) { Serial.println("Error initializing the camera"); delay(10000); ESP.restart(); } sensor_t * s = esp_camera_sensor_get(); s->set_vflip(s, 1); // 0 = disable , 1 = enable

// Configure and connect to WiFi IPAddress ip;