Skip to content

A project that detects STOP signs in images using color and shape analysis

Notifications You must be signed in to change notification settings

ardakbas/Stop-Sign-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Stop Sign Detection

This project is improved for identifying stop sign in an image. To analyze image, HSV color spaces are used. Also, there is some restrictions for preventing noise and increasing consistency. The detection includes two main constraints to reduce noise and improve accuracy: number of edges and object size.

Necessary Libraries

OpenCV is a library that is used for image processing. It helps to recognize objects with respect to their features. There is wide range of methods, approaches and functions. Also, it has huge documentation and open sources. These make OpenCV useful for image processing. To install OpenCV: pip install opencv-python

Numpy is a library used for matrix operations and numerical computations. It is especially useful in image processing for handling image arrays and performing mathematical transformations efficiently. To install Numpy: pip install numpy

Pathlib is a built-in library that is used to make path operations easy. Via path function, path's various features are easily used.

Usage

To use the code, call the find_stop(path) function. The path parameter specifies the image's path. When the function runs, it detects STOP signs in the image, draws a bounding box around them, and saves the processed image to the processed_images folder. This way, you can both perform detection and save the result with a single function call.

Limitations

Owing to the fact that the method relies on color analysis, there can be irrelevant outputs. In other words, objects like vehicle lights can deceive the code. Also, low brightness and different conditions can make inefficient measurement.

About

A project that detects STOP signs in images using color and shape analysis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages