This is nothing short of amazing considering the tiny amount of compute power available in an ESP32 camera board.
I had a go at this myself with my previous (analog) electricity meter a few years ago, but never managed to have a reliable solution – whereas this even has a web UI for tweaking the layout.