zspri / forza-ai

Lane detection and object recognition for Forza Horizon 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forza AI

A work-in-progress program to detect roadway boundaries and obstacles in Forza Horizon 4.

Requirements

  • Python 3.6
  • All modules in requirements.txt
  • RetinaNet for object recognition
    • Download retinanet.h5 and move it to the project's main directory

How to Run

2 monitors are required for the program to work properly.

  • Start Forza Horizon 4
  • python3 run.py and move the PyGame window to a secondary display
  • Focus the Forza game window
    • The pause menu will automatically be closed and the program will start capturing screenshots after a few seconds.

Screenshots

Lane Detection

Object Recognition

About

Lane detection and object recognition for Forza Horizon 4


Languages

Language:Python 100.0%