• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

PyImageSearch

You can master Computer Vision, Deep Learning, and OpenCV - PyImageSearch

  • Consulting
  • YouTube
  • OpenCV Install Guides
  • About
  • FAQ
  • Contact
  • Coaching
  • Get Started
  • Topics
    • Deep Learning
    • Dlib Library
    • Embedded/IoT and Computer Vision
    • Face Applications
    • Image Processing
    • Interviews
    • Keras and TensorFlow
    • Machine Learning and Computer Vision
    • Medical Computer Vision
    • Optical Character Recognition (OCR)
    • Object Detection
    • Object Tracking
    • OpenCV Tutorials
    • Raspberry Pi
  • Books and Courses
  • Student Success Stories
  • Blog
  • Consulting
  • About
  • FAQ
  • Contact

I tried to run your code from a tutorial but got an error. Can you help me?

April 22, 2019 by Adrian Rosebrock Leave a Comment

A

I tried to run your code from a tutorial but got an error. Can you help me?

I’m sorry to hear the code is not working for you.

I test all code, images, datasets, etc. before I include them in a blog post and publish the code.

Here are a few suggestions you should try:

  • Did you use the “Downloads” section of the tutorial to download the source code? (The downloads section can be found at the bottom of the post, just above the comments section).
  • Did you copy and paste the code from a tutorial? If so, stop immediately and use the “Downloads” section — you may have introduced an error or bug when copying and pasting.
  • Have you double and triple checked the paths to the input files are correct?
  • Have you tried running the code from the command line and not an IDE or Jupyter Notebook?
  • Have you verified you are passing in the proper command line arguments to the script?
  • Have you searched StackOverflow for the error?
  • If your error is related to a specific library, have you searched for the error on the library’s GitHub page?
  • Have you read the comments section or at least did ctrl + f  search on the page for your error? Most common errors are addressed in the comments.

If you think you found a bug in the tutorial, you should contact me.

Permalink

About the Author

Hi there, I’m Adrian Rosebrock, PhD. All too often I see developers, students, and researchers wasting their time, studying the wrong things, and generally struggling to get started with Computer Vision, Deep Learning, and OpenCV. I created this website to show you what I believe is the best possible way to get your start.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You can learn Computer Vision, Deep Learning, and OpenCV.

Get your FREE 17 page Computer Vision, OpenCV, and Deep Learning Resource Guide PDF. Inside you’ll find our hand-picked tutorials, books, courses, and libraries to help you master CV and DL.


Footer

Topics

  • Deep Learning
  • Dlib Library
  • Embedded/IoT and Computer Vision
  • Face Applications
  • Image Processing
  • Interviews
  • Keras
  • Machine Learning and Computer Vision
  • Medical Computer Vision
  • Optical Character Recognition (OCR)
  • Object Detection
  • Object Tracking
  • OpenCV Tutorials
  • Raspberry Pi

Books & Courses

  • PyImageSearch University
  • FREE CV, DL, and OpenCV Crash Course
  • Practical Python and OpenCV
  • Deep Learning for Computer Vision with Python
  • PyImageSearch Gurus Course
  • Raspberry Pi for Computer Vision

PyImageSearch

  • Affiliates
  • Get Started
  • OpenCV Install Guides
  • About
  • FAQ
  • Blog
  • Contact
  • Privacy Policy

© 2023 PyImageSearch. All Rights Reserved.