1. A system for regulating fluid flow, comprising: a fluid reservoir for infusing fluid contained therein into a patient; a drip chamber in fluid communication with the fluid reservoir, wherein the drip chamber is configured to allow a drop of the fluid to exit the fluid reservoir and travel through the drip chamber; a backlight disposed near the drip chamber such that the backlight provides at least partial illumination to the drip chamber; a valve configured to regulate the fluid flowing from the drip chamber to the patient; and a flow meter for monitoring the flow rate of the fluid passing through the drip chamber, the flow meter including: an image sensor configured to capture an image of the drip chamber, and a processor configured to: determine whether the captured image of the drip chamber contains a match to a template, and apply a blurring function to the image captured by the image sensor of the drip chamber such that the processor can determine if the captured image contains a match to the template.