TinyML computer vision using coarsely-quantized log-gradient input images