user70456: For one of my projects, I would like to transfer a camera image with the best possible resolution and as many FPS as possible with the ESP32Cam.
For this I successfully used the code from
https://RandomNerdTutorials.com/esp32-cam-video-streaming-web-server-camera-home-assistant/
A grayscale image would be enough for further processing, if it allows a higher speed.
Problem is, if I set the format to PIXFORMAT_GRAYSCALE, the ESP only outputs "Camera capture failed".
Are there any other settings to do?

user47542: I just tried this with my ESP32Cam with no problems.  I would check that you are supplying enough power; I've definitely seen the 'Camera capture failed' when I had power issues.  Also, I would try a more recent tutorial on the ESP32Cam; the latest Expressif ESP32 Arduino libraries have AI Thinker ESP32Cam as a device choice.  I would try the CameraWebServer example in the ESP32 library and see if you still have the problem.

user82071: I guess that 1 year later you shouldn't work on this anymore, but for every one that need the grayscale too, here my solution.
For reference I've found here that we can set  : s->set_special_effect(s, 2);
Where 2 is grayscale effect.
0 - No Effect
1 - Negative
2 - Grayscale
3 - Red Tint
4 - Green Tint
5 - Blue Tint
6 - Sepia
  // Camera init
  esp_err_t err = esp_camera_init(&config);
  if (err != ESP_OK) {
    Serial.printf("Camera init failed with error 0x%x", err);
    return;
  }

  sensor_t * s = esp_camera_sensor_get();
  s->set_special_effect(s, 2); // 0 to 6 (0 - No Effect, 1 - Negative, 2 - Grayscale, 3 - Red Tint, 4 - Green Tint, 5 - Blue Tint, 6 - Sepia)


70456: <p>For one of my projects, I would like to transfer a camera image with the best possible resolution and as many FPS as possible with the ESP32Cam.
For this I successfully used the code from
<a href="https://RandomNerdTutorials.com/esp32-cam-video-streaming-web-server-camera-home-assistant/" rel="nofollow noreferrer">https://RandomNerdTutorials.com/esp32-cam-video-streaming-web-server-camera-home-assistant/</a></p>
<p>A grayscale image would be enough for further processing, if it allows a higher speed.</p>
<p>Problem is, if I set the format to PIXFORMAT_GRAYSCALE, the ESP only outputs &quot;Camera capture failed&quot;.</p>
<p>Are there any other settings to do?</p>
 47542: <p>I just tried this with my ESP32Cam with no problems.  I would check that you are supplying enough power; I've definitely seen the 'Camera capture failed' when I had power issues.  Also, I would try a more recent tutorial on the ESP32Cam; the latest Expressif ESP32 Arduino libraries have AI Thinker ESP32Cam as a device choice.  I would try the <code>CameraWebServer</code> example in the ESP32 library and see if you still have the problem.</p>
 82071: <p>I guess that 1 year later you shouldn't work on this anymore, but for every one that need the grayscale too, here my solution.</p>
<p>For reference I've found <a href="https://randomnerdtutorials.com/esp32-cam-ov2640-camera-settings/" rel="nofollow noreferrer">here</a> that we can set  : s-&gt;set_special_effect(s, 2);
Where 2 is grayscale effect.</p>
<p>0 - No Effect
1 - Negative
2 - Grayscale
3 - Red Tint
4 - Green Tint
5 - Blue Tint
6 - Sepia</p>
<pre><code>  // Camera init
  esp_err_t err = esp_camera_init(&amp;config);
  if (err != ESP_OK) {
    Serial.printf(&quot;Camera init failed with error 0x%x&quot;, err);
    return;
  }

  sensor_t * s = esp_camera_sensor_get();
  s-&gt;set_special_effect(s, 2); // 0 to 6 (0 - No Effect, 1 - Negative, 2 - Grayscale, 3 - Red Tint, 4 - Green Tint, 5 - Blue Tint, 6 - Sepia)
</code></pre>
