4. CARSAFE IMPLEMENTATION
We implement CarSafe on the multi-core Galaxy S3 Android
phone. The driver, road and car classification pipelines, which represent
the most computationally demanding modules, are written in
C and C++ based on the OpenCV libraries and interfaced with Java
using JNI wrappers. Other CafeSafe architectural components (viz.
dangerous driving event engine, context-driven camera switching,
and multi-core computation planner) are implemented using pure
Java. To validate the prototype, we integrate the CarSafe modules
with the OsmAnd navigation app.