python: eliminate pylint warnings

Tested with:
- pylint 1.9.1
This commit is contained in:
Alexander Alekhin
2018-06-04 17:58:06 +03:00
parent fc35c77f00
commit dcb9bc2544
8 changed files with 10 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ src = cv.cvtColor(src, cv.COLOR_BGR2GRAY)
## [Convert to grayscale]
## [Apply Histogram Equalization]
dst = cv.equalizeHist(src);
dst = cv.equalizeHist(src)
## [Apply Histogram Equalization]
## [Display results]

View File

@@ -88,7 +88,7 @@ def main(argv):
def display_caption(caption):
global dst
dst = np.zeros(src.shape, src.dtype)
rows, cols, ch = src.shape
rows, cols, _ch = src.shape
cv.putText(dst, caption,
(int(cols / 4), int(rows / 2)),
cv.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255))

View File

@@ -33,7 +33,7 @@ if src is None:
print('Could not open or find the image: ', args.input)
exit(0)
# Convert the image to Gray
src_gray = cv.cvtColor(src, cv.COLOR_BGR2GRAY);
src_gray = cv.cvtColor(src, cv.COLOR_BGR2GRAY)
## [load]
## [window]

View File

@@ -94,7 +94,7 @@ while True:
break
frame_HSV = cv.cvtColor(frame, cv.COLOR_BGR2HSV)
frame_threshold = cv.inRange(frame_HSV, (low_H, low_S, low_V), (high_H, high_S, high_V));
frame_threshold = cv.inRange(frame_HSV, (low_H, low_S, low_V), (high_H, high_S, high_V))
## [while]
## [show]