Over the past year, employees at Nordstrom RackStaples, and Finish Line have all wrongly accused African-American shoppers of theft. The subsequent media attention has raised broader public awareness about the discrimination many shoppers of color face on a regular basis but done little to address the problem. However, the rise of cashierless stores, enabled by facial recognition technology, may help reduce racial discrimination while shopping.

Racial bias against African-American consumers is common enough that it has led to the creation of the phrase “shopping while black.” Indeed, former U.S. President Barack Obama famously said in 2013: “There are very few African American men in this country who haven’t had the experience of being followed when they were shopping in a department store. That includes me.” This treatment turns shopping, which should be a leisure activity, into an experience that makes some African-Americans, such as Vogue senior writer Janelle Okwodu, feel “singled out and unwelcome…small and powerless.”

Stores such as Amazon Go, one of Amazon’s cashierless stores, use cameras, sensors, and computer vision technology to “see” who takes items off shelves, adding these items to a virtual shopping cart so that checkout is seamless. Many retailers are moving in this direction, with over 150 companies, including 7-Eleven and two of China’s largest e-commerce businesses, Alibaba and JD.com, experimenting with using facial recognition and other biometrics to eliminate the need for cashiers. As a result, store employees are not looking for potential shoplifters because the technology automatically charges customers for what they take when they leave the store. Without a physical checkout, former CNET senior associate editor Ashlee Clark Thompson, an African-American journalist that visited Amazon Go, wrote: “No one cared what I was doing. Is this what it feels like to shop when you’re not black?”

Unfortunately, it is not clear that cashierless stores will become mainstream quickly because a vocal minority of individuals oppose the use of facial recognition technology. For example, Northeastern University professor Woodrow Hartzog argues that facial recognition “is one of the rare situations that requires an absolute prohibition, something like the Ottawa Treaty on landmines.” Moreover, groups such as the American Civil Liberties Union stokes fears that the technology will “track everybody all the time.”

These objections have motivated lawmakers to pursue legislation to limit the use of facial recognition technology. For example, in 2016, the Connecticut General Assembly considered a bill that would have required businesses to get prior consent from customers before using facial recognition technology, which would have made implementation of the technology difficult. While Connecticut lawmakers did not pass that version of the bill, they did pass a version requiring stores to display signs indicating they are using facial recognition. Such a law implies that using facial recognition, as opposed to measures such as basic security cameras or security guards, is potentially harmful. This message could reduce the adoption of facial recognition by stores.

Ironically, many opponents of facial recognition technology argue that using the technology is discriminatory because facial recognition algorithms tend to perform unevenly across different groups, such as by gender or race. One solution to this problem is training facial-recognition systems with more diverse datasets of faces, a problem the government could help address. But even if the algorithms have small differences in performance across different populations, it may still be appropriate to use the technology. The problem with many objections to facial recognition technology is that they do not consider how, even if it is not perfect, using the technology could change the status quo for the better. For example, they ignore the fact that many people already face discrimination today and using facial recognition technology for certain applications, like store surveillance, could reduce the impact of human biases.

Despite the benefits of facial recognition, such as allowing consumers to quickly and securely sign into their phones and board an international flight without a boarding pass, many opponents lament the use of the technology because they believe it “will clear the path for truly nightmarish uses.” Indeed, it is easy to fall into the trap of demonizing an emerging technology that is not yet well-understood. But policymakers should give facial recognition a chance to prove its value and not rush to pre-judge the technology.