Patent attributes
A method of detecting traffic passing a camera overlooking a roadway. The method comprises receiving video frames by a traffic analytics engine from the camera, determining a mask that defines a lane detection region by the traffic analytics engine based on an assumed average length of a vehicle and based on analyzing lane boundary markers in the video frames; determining a background reference frame by the traffic analytics engine by applying the mask to the video frames and by averaging the pixels of the masked video frames; determining that at least some of the masked video frames differ from the background reference frame by more than a detection threshold; and incrementing a traffic count associated with the lane detection region stored in a memory of the computer system based on the masked video frames that differ from the background reference frame by more than the detection threshold.