LONDON — In one of the first lawsuits to address the use of live facial recognition technology by governments, a British court ruled on Wednesday that police use of the systems is acceptable and does not violate privacy and human rights.

The case has been closely watched by law enforcement agencies, privacy groups and government officials because there is little legal precedent concerning the use of cameras in public spaces that scan people’s faces in real time and attempt to identify them from photo databases of criminal suspects. While the technology has advanced quickly, with many companies building systems that can be used by police departments, laws and regulations have been slower to develop.

The High Court dismissed the case brought by Ed Bridges, a resident of Cardiff, Wales, who said his rights were violated by the use of facial recognition by the South Wales Police. Mr. Bridges claimed that he had been recorded without permission on at least two occasions — once while shopping and again while attending a political rally.

The case centers on the use of systems that scan human faces in real time. That is different from technology used by the authorities to find matches from past images, driver’s license photographs or videos. Companies including Apple, Facebook and Google use the technology to identify people in pictures.