Package: sheriff
Sheriff : An AI enabled program to detect car speedWhat is it?Road accidents, A very common problem, but still nobody is using Al technology to solve it,
so I decided to make a program to solve it, Sheriff - An Al enabled program to detect car speed and to prevent road accidents,
it will detect which car is overspeeding the speed limit and we can fine some charge to the driver,
if the car is overspeeding, with Sheriff we can check which car was in overspeed or underspeed by checking the report.log file generated by the program,
and it will also save the images of cars which were in overspeed, in a folder, to detect the speed,
you have to select the video file and then it will start doing the process.Main FeaturesHere are just a few of the things that Sheriff does well:Detect car speed usingspeed=distance/timeformula.You can detect car speed from any video file.UI made withPyQt5.We know these features are not enough to make a change, but we are trying to improve Sheriff, and hopefully we will reach our goal soonWhere to get it?The source code is currently hosted on GitHub at:https://github.com/Programming-Hero-1313/SheriffPackageLinksPyPiSource codePackage Installationpip install sheriffPackage FeaturesCheck versionRun the GUIfrom sheriff import *
import sheriff

# Check Sheriff version -
print(sheriff.version())

# Run the GUI -
gui.run()What's new in v1.6Fixed Issue#3Dependencies,dlibandcmakeremoved frominstall_requiresattribute insetup.py. Now the user have to manually install he dlib module, for that the user have to installcmake guifromhereandcmake libraryfromhereor runpip install cmakein Powershell. and the user have to install dlib module by runningpip install dlibin Powershell.What's new in v1.5Added change notes in package/README.mdAdded LICENSE.txt & README.md in MANIFEST.inWhat's new in v1.4Bug Fixed: Dependencies not installing.What's new in v1.3Changedgui_datadirectory name to.gui_data, so that it will be hidden when you run thelsorlistcommand in package.Bug Fixed - Window icon not showing on open-cv feed window in package.What's new in v1.2Fixed error -Traceback (most recent call last): File "C:\python\lib\site-packages\sheriff\gui.py", line 147, in browsefiles trackMultipleObjects() File "C:\python\lib\site-packages\sheriff\gui.py", line 233, in __init__ root.iconbitmap("gui_data/res/logo.ico") File "C:\python\lib\tkinter\__init__.py", line 2109, in wm_iconbitmap return self.tk.call('wm', 'iconbitmap', self._w, bitmap) _tkinter.TclError: bitmap "gui_data/res/logo.ico" not definedBug Fixed - Images not showing on home screen like icon, logo.DependenciesOpenCV - OpenCV is a library of programming functions mainly aimed at real-time computer visionNumPy - Adds support for large, multi-dimensional arrays, matrices and high-level mathematical functions to operate on these arraysPyQt5 - Qt is the fastest and smartest way to produce industry-leading software that users lovedlib - A toolkit for making real world machine learning and data analysis applicationsInstallationYou can install the all requirements from requirements.txt by using pip.pip install -r requirements.txtClone the repositorygit clone https://github.com/Programming-Hero-1313/Sheriff.gitUsagepython scripts/main.pyVideo Tutorial for Sheriff UsageEnter the speed LimitEnter theSpeed Limitin the input box you want to setClick On Start ButtonClick onStartButton and select the video fileNow Sheriff should Start detecting car speed from the provided video
Do the following steps when the detection is complete
If you are facing any errors feel free to contact me.Navigate to overspeeding directoryNavigate toOverspeedingdirectory to see the reportNavigate to overspeeding/cars directoryNavigate to cars directory located in overspeeding directory to see theimages of carswhich were overspeedingContactEmail-ggambhir1919@gmail.comDiscord- PROGRAMMING HERO#9829YouTube-https://www.youtube.com/c/PROGRAMMINGHERO1010Instagram-https://www.instagram.com/programming.hero/