Skip to main content

A Raspberry Pi Computer Vision System for Self-driving Cars

  • Conference paper
  • First Online:
Intelligent Computing (SAI 2022)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 507))

Included in the following conference series:

  • 1269 Accesses

Abstract

This paper presents a prototype of a self-driving vehicle that can detect the lane that it is currently in and can aim to maintain a central position within that lane; this is to be done without the use of special sensors or devices and utilizing only a low-cost camera and processing unit. The proposed system uses a hand-built detection system to observe the lane markings using computer vision, then using these given lines, calculate the trajectory to the center of the lane. After locating the center of the lane, the system provides the steering heading that the vehicle needs to maintain to continuously self-correct itself; this process is real-time performed with a sampling frequency of 20 Hz. Due to the increased number of calculations, the heading is smoothed to remove any anomalies in observations made by the system. Since this system is a prototype, the required processing power used in an actual vehicle for this application would be much higher since the budget of the components would be more significant; a higher processing speed would lead to an overall increased frame rate of the system. In addition, a higher frame rate would be required for higher speeds of the vehicle to allow for an accurate and smooth calculation of heading. The prototype is fully operational within an urban environment where road markings are fully and clearly defined along with well-lit and smooth road surfaces.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Statista: Number of cars in the UK 2000–2016—Statista (2021). https://www.statista.com/statistics/299972/average-age-of-cars-on-the-road-in-the-united-kingdom/. Accessed 23 Apr 2021

  2. Tesla.com: Autopilot (2021). https://www.tesla.com/en_GB/autopilot. Accessed 27 Apr 2021

  3. The MagPi magazine: Raspberry Pi 4 specs and benchmarks — The MagPi magazine (2021). https://magpi.raspberrypi.org/articles/raspberry-pi-4-specs-benchmarks. Accessed 24 Apr 2021

  4. The Verge: Two people killed in fiery Tesla crash with no one driving (2021). https://www.theverge.com/2021/4/18/22390612/two-people-killed-fiery-tesla-crash-no-driver. Accessed 1 May 2021

  5. Opencv24-python-tutorials.readthedocs.io: Smoothing Images — OpenCV-Python Tutorials beta documentation (2021). https://opencv24-python-tutorials.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_filtering/py_filtering.html. Accessed 25 Mar 2021

  6. OpenCV: Canny Edge Detection in OpenCV (2021). https://docs.opencv.org/master/da/d22/tutorial_py_canny.html. Accessed 25 Mar 2021

  7. Datacarpentry.org: Blurring images – Image Processing with Python (2021). https://datacarpentry.org/image-processing/06-blurring/. Accessed 26 Ma 2021

  8. Sahir, S.: Canny Edge Detection Step by Step in Python — Computer Vision (2021). https://towardsdatascience.com/canny-edge-detection-step-by-step-in-python-computer-vision-b49c3a2d8123. Accessed 20 Apr 2021

  9. Wang, Z.: Self Driving RC Car (2021). https://zhengludwig.wordpress.com/projects/self-driving-rc-car/. Accessed 5 Jan 2021

  10. Medium: Tutorial: Build a lane detector (2021). https://towardsdatascience.com/tutorial-build-a-lane-detector-679fd8953132. Accessed 11 Feb 2021

  11. Arduino Project Hub. Lane Following Robot using OpenCV (2021). https://create.arduino.cc/projecthub/Aasai/lane-following-robot-using-opencv-da3d45. Accessed 15 Feb 2021

  12. Hassan, M.: self-driving-car-using-raspberry-pi (2021). https://www.murtazahassan.com/courses/self-driving-car-using-raspberry-pi/. Accessed 15 Feb 2021

  13. Desegur, L.: A Lane Detection Approach for Self-Driving Vehicles (2021). https://medium.com/@ldesegur/a-lane-detection-approach-for-self-driving-vehicles-c5ae1679f7ee. Accessed 22 Mar 2021

  14. Tian, D.: DeepPiCar — Part 4: Autonomous Lane Navigation via OpenCV (2021). https://towardsdatascience.com/deeppicar-part-4-lane-following-via-opencv-737dd9e47c96. Accessed 24 Mar 2021

  15. Assets.publishing.service.gov.uk: Reported road casualties in Great Britain: 2019 annual report (2021). https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/922717/reported-road-casualties-annual-report-2019.pdf. Accessed 18 May 2021

  16. Buckley, N., Sherrett, L., Secco, E.L.: A CNN sign language recognition system with single & double-handed gestures. In: IEEE Signature Conference on Computers, Software, and Applications (2021)

    Google Scholar 

  17. Sharma, H., Saraswat, M., Kumar, S., Bansal, J.C. (eds.): CIS 2020. LNDECT, vol. 61. Springer, Singapore (2021). https://doi.org/10.1007/978-981-33-4582-9

    Book  Google Scholar 

  18. McHugh, D., Buckley, N., Secco, E.L.: A low-cost visual sensor for gesture recognition via AI CNNS, Intelligent Systems Conference (IntelliSys) 2020. The Netherlands, Amsterdam (2020)

    Google Scholar 

  19. Maereg, A.T., Lou, Y., Secco, E.L., King, R.: Hand gesture recognition based on near-infrared sensing wristband. In: Proceedings of the 15th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications (VISIGRAPP 2020), pp. 110–117 (2020)

    Google Scholar 

Download references

Acknowledgment

This work was presented in dissertation form in fulfilment of the requirements for the BEng in Robotics for the student Zach Isherwood at the School of Mathematics, Computer Science & Engineering, Liverpool Hope University.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Emanuele Lindo Secco .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Isherwood, Z., Secco, E.L. (2022). A Raspberry Pi Computer Vision System for Self-driving Cars. In: Arai, K. (eds) Intelligent Computing. SAI 2022. Lecture Notes in Networks and Systems, vol 507. Springer, Cham. https://doi.org/10.1007/978-3-031-10464-0_63

Download citation

Publish with us

Policies and ethics