Skip to content

Commit 783f90d

Browse files
authored
Merge pull request #3723 from Kunal-Somani/fix/remove-unused-variables
fix: remove unused local variables in classnet and lap
2 parents 06e67a6 + f524f1a commit 783f90d

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

  • common/hal_interfaces/hal_interfaces/general
  • exercises/follow_line/python_template

common/hal_interfaces/hal_interfaces/general/classnet.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ def __init__(self):
220220
self.net = cv2.dnn.readNetFromTensorflow(FROZEN_GRAPH, PB_TXT)
221221

222222
def detect(self, img):
223-
rows = img.shape[0]
224-
cols = img.shape[1]
225223
self.net.setInput(
226224
cv2.dnn.blobFromImage(
227225
img,
@@ -238,8 +236,6 @@ def detect(self, img):
238236

239237
# Get bounding boxes function
240238
def getBoundingBoxes(self, img):
241-
rows = img.shape[0]
242-
cols = img.shape[1]
243239
detections = self.detect(img)
244240
bounding_boxes = []
245241

exercises/follow_line/python_template/lap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ def __init__(self, pose3d):
99
# Function to check for threshold
1010
# And incrementing the running time
1111
def check_threshold(self):
12-
pose3d = self.pose3d.getPose3d()
1312

1413
# Variable for pause
1514
if self.pause_condition == False:

0 commit comments

Comments
 (0)