Alternatively, use imagesize.cgi to retrieve the real image resolution and verify that the requested resolution is supported:
While this article focuses on MJPEG over HTTP, it’s worth noting that Axis cameras also support RTSP (Real-Time Streaming Protocol), which often provides better performance and lower bandwidth consumption.
import requests