Browse Source

comment for code cleanup

master
Alireza Savand 1 year ago
parent
commit
cc6a4df3de
2 changed files with 4 additions and 4 deletions
  1. 1
    1
      README.md
  2. 3
    3
      subimage.py

+ 1
- 1
README.md View File

@@ -86,7 +86,7 @@ $ python setup.py test
To review the code coverage report run:

```
python setup.py coverage
$ python setup.py coverage
```

It will generate the code coverage, printed on screen and saved in HTML format under `htmlcov/` dir.

+ 3
- 3
subimage.py View File

@@ -64,8 +64,8 @@ class SubImage:
original: np.ndarray = cv2.addWeighted(self.original_image, 0.25, mask, 0.75, 0)
original[top_left[1]:bottom_right[1], top_left[0]:bottom_right[0]] = region_of_interest

# display the images
cv2.imshow("Original", cv2.resize(original, (800, 600)))
# Display the images
cv2.imshow("Original", cv2.resize(original, (800, 600))) # Could use a better resizing.
cv2.imshow("Cropped", self.cropped_image)

print('Exit with pressing 0 (zero).')
@@ -74,7 +74,7 @@ class SubImage:


# Excluded from the code coverage report because the tests for this part
# are run in different process using subsprocess.check_output.
# are run in different process using :method:``subprocess.check_output``.
# Coverage is possible, but it's out of the scope of this task.
def main() -> None: # pragma: no cover
if len(sys.argv) < 3 or len(sys.argv) > 4:

Loading…
Cancel
Save