This is a 15mm or 1/2 inch plastic cold water meter with a protective hinged lid, likely designed for residential submetering.
It typically operates using a multi-jet or rotary piston mechanism to measure water volume passing through a pipeline.
The housing is commonly constructed from reinforced nylon or polymerization amine to resist rust and corrosion.