With esp-idf v5.5.1, which is used with new MicroPython versions, putting esp32-camera into the components folder of esp-idf does not work any longer. You must place esp32-camera outside of the esp-idf directory tree and refer to it in main/idf_component.yml.