Drs Gully System#953
Conversation
| @@ -0,0 +1,28 @@ | |||
| # Drs Gully System | |||
|
|
|||
| # About this Project | |||
There was a problem hiding this comment.
| # About this Project | |
| ## About this Project |
| # About this Project | ||
| One of the most treasured memories of growing up is playing cricket with friends. Just like me, there are countless other people whose favourite part of the day is to grab a pair of bat and ball and just play. Gully cricket is the most popular form of sport, is played in everywhere. So, today’s project is going to be very helpful for those cricket fans who want to create their own decision review system. | ||
|
|
||
| # Features |
There was a problem hiding this comment.
| # Features | |
| ## Features |
| # Features | ||
| The third empire takes the decision about no-ball, runout, or catch out. Here we are going to make the decision review system using python which will take an accurate decison aboutwheather the batsman is out or not out. | ||
|
|
||
| # How to Run |
There was a problem hiding this comment.
| # How to Run | |
| ## How to Run |
|
|
||
| # How to Run | ||
|
|
||
| 1. Run the installation script |
There was a problem hiding this comment.
Umm, I think these instructions have nothing to do with this script. There is no file named install.py and no Enter installation directory: project_dir. Kindly check these and update according to the script pushed
| import time | ||
| import imutils # pip install imutils | ||
|
|
||
| stream = cv2.VideoCapture("clip.mp4") |
There was a problem hiding this comment.
Take the input from the user for the video path
| time.sleep(2.5) | ||
| # 5. Display out/notout image | ||
| if decision == 'out': | ||
| decisionImg = "out.jpg" |
There was a problem hiding this comment.
| decisionImg = "out.jpg" | |
| decisionImg = "./Drs Gully System/out.jpg" |
| if decision == 'out': | ||
| decisionImg = "out.jpg" | ||
| else: | ||
| decisionImg = "not_out.jpg" |
There was a problem hiding this comment.
| decisionImg = "not_out.jpg" | |
| decisionImg = "./Drs Gully System/not_out.jpg" |
|
|
||
| def pending(decision): | ||
| # 1. Display decision pending image | ||
| frame = cv2.cvtColor(cv2.imread("pending.jpg"), cv2.COLOR_BGR2RGB) |
There was a problem hiding this comment.
| frame = cv2.cvtColor(cv2.imread("pending.jpg"), cv2.COLOR_BGR2RGB) | |
| frame = cv2.cvtColor(cv2.imread("./Drs Gully System/pending.jpg"), cv2.COLOR_BGR2RGB) |
| time.sleep(1.5) | ||
|
|
||
| # 3. Display sponsor image | ||
| frame = cv2.cvtColor(cv2.imread("sponsor.jpg"), cv2.COLOR_BGR2RGB) |
There was a problem hiding this comment.
| frame = cv2.cvtColor(cv2.imread("sponsor.jpg"), cv2.COLOR_BGR2RGB) | |
| frame = cv2.cvtColor(cv2.imread("./Drs Gully System/sponsor.jpg"), cv2.COLOR_BGR2RGB) |
| # Tkinter gui starts here | ||
| window = tkinter.Tk() | ||
| window.title(" Third Umpire Decision Review Kit") | ||
| cv_img = cv2.cvtColor(cv2.imread("welcome.jpg"), cv2.COLOR_BGR2RGB) |
There was a problem hiding this comment.
| cv_img = cv2.cvtColor(cv2.imread("welcome.jpg"), cv2.COLOR_BGR2RGB) | |
| cv_img = cv2.cvtColor(cv2.imread("./Drs Gully System/welcome.jpg"), cv2.COLOR_BGR2RGB) |
|
Also, look at these logs to pass the test: https://deepsource.io/gh/avinashkranjan/Amazing-Python-Scripts/run/13a5e64f-5c30-4491-ba8d-4459b0d1efe6/python/ |
|
@Ayush7614 updates on this? |
|
@Ayush7614 Will you update this PR today? |
|
PR and issue closed due to no response from participant side |
Description
Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change.
Fixes #914
Replace #914 with the issue number which is fixed in this PR
Have you read the Contributing Guidelines on Pull Requests?
Type of change
Please delete options that are not relevant.
Checklist:
README.mdTemplate for README.md