A trip to Baidu's headquarters may offer a glimpse into the future of payments, building security and driving.

Baidu is often referred to as the "Google of China" because the tech titan commands roughly 70 percent of China's internet searches. Like Alphabet in the U.S., the Chinese company is also working on a host of other technologies.

CNBC recently visited its headquarters in Beijing, which is home to around 20,000 of its 40,000-person workforce. Similar to companies in Silicon Valley, Baidu has multiple buildings spread across a sprawling campus boasting amenities from yoga classes to rock climbing walls.

Employees now have the option of registering their faces, which they can use to get through security checkpoints and even pay for things like lunch or items at vending machines.