A homeless man nearly killed a Louisville cab driver when he hit him over the head with a bourbon bottle, knocking him unconscious and causing him to crash into a nearby house.

Interior dashcam footage from the cab obtained by the Courier Journal shows the scene, where a man who was picked up from a liquor store pulls a bottle of Wild Turkey bourbon from his bag and suddenly slams it over the driver's head, causing him to lose consciousness.

The driver then veers into oncoming traffic, barely misses two cars, and slams into a home on Eastern Parkway.

The incident happened on Nov. 16 around 6:30 p.m., according to Taxi 7 general manager Michael Cregan. He wasn't allowed to make the video public until Metro ABC, the Louisville police agency that specializes in license and permitting, completed its investigation.

See also:'Armed and dangerous' Louisville armored-car driver wanted by the FBI

"The driver is still recovering from injuries sustained in the attack and crash," Cregan told the Courier Journal. "He obviously remembers nothing. ... The video was the only way we could honestly know what had happened."

Louisville police arrested Brian L. Moss in connection with the assault on Dec. 19, about a month later, according to court documents.

His address was listed as "city as large" on his documents, indicating that he was homeless, according to Cregan. The driver had picked up Moss outside of a Liquor World.

Moss was charged with assault, wanton endangerment and two counts of criminal mischief. He is scheduled to appear for a pretrial conference on Jan. 18.

"Taxi 7 worked closely with them and they did a great job gathering evidence and making an arrest," Cregan said.

The cab was recently removed from the home it crashed into after the homeowner expressed some concerns about the foundation's structural integrity.

Read this:Sex with animals is no joke, senator says. But it's legal in Kentucky

Cregan said that he is unsure why Moss hit the driver and that a motive is unclear. If it was an attempted robbery, Cregan said 80 percent of his drivers' transactions are credit cards.

"The reason Taxi 7 is releasing the video is to make people aware that there are cameras in the taxi cabs and we hope that if the next 'bad guy' is watching it may deter them from attempting to assault or rob a cab driver," Cregan said.

Thomas Novelly: tnovelly@courierjournal.com, 502-582-4465, or @tomnovelly. Support strong local journalism by subscribing today: courier-journal.com/tomn.