LANCASTER (CBS) — Two people suspected in several recent armed robberies, which netted thousands of dollars, have been arrested thanks in part to facial recognition software.

The program, which is relatively new, uses technology to compare facial photos to booking photos already in the database, said Sgt. Randy Harris of the Lancaster Sheriff’s Station said.

READ MORE: 400-Acre Flats Fire 10% Contained, 2 Homes Destroyed, A Firefighter Injured And Experts Worried About Dry Conditions Across Southland

The suspects were arrested Thursday, a day after a postal supply and private mailbox business on East Avenue J were robbed, authorities said.

The pair is also suspected of targeting a check-cashing business on Jan. 17, on West Avenue L, and a fast-food restaurant the following day, according to Harris.

“The first major lead came when a clear image of the (male) suspect’s face was captured on a surveillance camera during the robbery of (the) check-cashing business,” Harris said.

READ MORE: LAPD K-9 Officer "Iggy" Struck In The Face By Armed Suspect, Remained Undeterred During The Incident

Detectives entered the photo into the computer system using the software. Within minutes, the program provided a possible match for the gunman and investigators began looking for him.

“The male suspect who was arrested for the robberies is the same suspect the facial recognition program indicated as a possible match,” Harris said.

Detectives subsequently searched the woman’s apartment in Lancaster, and found a handgun believed used in the crime, Harris said.

MORE NEWS: Flats Fire Now 10% Contained, 2 Homes Destroyed And 1 Firefighter Injured

(©2012 CBS Local Media, a division of CBS Radio Inc. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Wire services contributed to this report.)