Skip to content

Cynobs-repo/pydashcamviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyDashcamViewer

Play dashcamvideos and show their gps position in realtime with python



Important

Only works with VIOFO A229 Plus dashcam mp4 video files.


Can also work with other Novatek based dashcams but its not tested until now.
If you have another type of (Viofo) dashcam, please try it out and post a comment.
If you have a completely different cam and it doesn't work you can send me a video file of it and I will extend the script.

✅ designed for windows (10/11)
✅ standalone package available - no install needed
✅ GPS position is displayed on openstreetmaps synchronized with the video file


How to install and setup

the lazy way

Download all the pyDashcamplayer.7zip files and unzip them.
Open the folder pyDashcamplayer and start the exe of the same name in it.

if your dashcam use daylight saving time the script will work correctly. If you dont have this feature in your cam enabled open the file:

pyDashcamViewer\python-3.6.8.amd64\pydashcam\run.py

and change the line number 21

use_daylight_saving_time = True

to

use_daylight_saving_time = False

build it

Note

You will need Python 3.6 to run the code.


While we are on a Windows system we can use winpython. First we download the appropriate Winpython package: https://sourceforge.net/projects/winpython/files/WinPython_3.6/3.6.8.0/WinPython64-3.6.8.0Zero.exe/download

unzip/extract it somewhere you like. Open the WPy64-3680 folder and start the WinPython Command Prompt.exe

in the Command prompt window type:

python.bat -m pip install --upgrade pip

to update the old pip package in winpython. If you do not do this, the installation of opencv will fail. then install needed packages with:

python.bat -m pip install opencv-python pillow folium cefpython3 pywin32

As soon as this is finished, copy the pydashcam folder and its contents to /WPy64-3680/python-3.6.8.amd64/ The file run_VE.bat is copied to the /WPy64-3680/scripts folder.

Now you can execute the run_VE.bat script and pyDashcamviewer starts.

If you want to build a exe file like in the aio package you can use autoit: AutoIt is a simple tool for creating .exe files. Download AutoIt and install it. https://www.autoitscript.com/site/autoit/downloads/
Create a file named pyDashcamViewer.au3 with the following content:

Run(@ScriptDir & "\scripts\run_VE.bat", @ScriptDir, @SW_SHOW)

Explanation:

@ScriptDir returns the directory of the .exe file.
Run(...) starts the batch file in the scripts subfolder.


After the installation of AutoIt:

  • Right-click on pyDashcamViewer.au3
  • Select Compile Script (x64)
  • This will create a pyDashcamViewer.exe.

This pyDashcamViewer.exe can now be used to start the run_VE.bat in the scripts folder.

About

Play dashcamvideos and show their gps position in realtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published