Skip to content

LevinHinder/Neural-Network-For-Lane-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural-Network-For-Lane-Detection

Manual

  1. Download the newest programme.py file from the release.
  2. Download the newest Python Interpreter. Make sure you can pip install.
  3. Run programme.py in the Python console. The programme will automaticly install all necessary libraries by itself or, if needed, update them. It will also automaticly install the model. The first startup process may take a view minutes.
  4. Once the programme has loaded it will show you path:. Write there the full path to your video file you want to process.
    E.g. path: C:\Users\Levin\Downloads\test.mp4
  5. Wait until the programme has finished. As soon as it's done, it will save the new video file in the directory where programme.py is saved. It is named original_file_name_output.mp4
  6. To exit the programme write exit as path.
  7. To uninstall the programme write uninstall as path.

Error Messages

ERROR: Failed to install required libraries
Start the programme again. If the programme still crashes after the second restart, install the libraries specified in the console manually.

ERROR: Automatic folder to save and load model not found
Specify a complete storage path where the model is to be saved. Remember this path as you will need it for future uses of the programme.

ERROR: Download failed
Start the programme again. If the programme still crashes after the second restart, download the v.1.3.0.model file. Save the file in any folder. Finally, enter the folder path in the console when prompted. IMPORTANT: do not change the name of the .model file.

ERROR: Model not found
Check the storage path of the model you specified. Also check the name of the downloaded file.

Hardware Specefications

  • Memory: >5GB
  • RAM: >5GB
The programme is heavily RAM dependent and will automaticly adapt to the amount of RAM availiable. Therefore more than 8 GB of RAM is recommendable.

Software Specefications

  • Python 3.8, 3.9
For my testruns I used following library versions.
  • dill 0.3.4
  • numpy 1.21.2
  • opencv-python 4.5.3.56
  • psutil 5.8.0
  • requests 2.26.0
There should be no dependencies with regard to the operating system. However testruns were succesful on Windows, MacOS and Linux.

Dataset

For this project I used the CurveLanes Dataset. With the programme data preparation.py I wrote a little scipt to convert the datapoints into a more uniform way. To do so, I converted all the information from the .JSON files into pictures with binary segmentation.

License

MIT License

Copyright (c) 2022 Levin Hinder

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.