Skip to content

Commit

Permalink
Added Write on Jpg in uw_sw
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenkane committed Feb 27, 2020
1 parent c45ad2b commit 7db3100
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file added last_Image/last_Frame.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions sourceCode/uw_swimmer_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
# Global Variables for Accuracy, Underwater Timing Features
#######################################################
# Counter for number of desired samples -- Global Used for accuracy calc.
N = 1
N = 0

# Global Variables for Timing Feature, Number of Swimmers in Pool
T = 0.00
Expand Down Expand Up @@ -309,6 +309,12 @@
#######################################################
cv2.imshow("DDS: Underwater Video Feed", img)

#######################################################
# Section 11: Write 10th Frame to .jpg
#######################################################
if N%10 == 0:
cv2.imwrite('../last_Image/last_Frame.jpg', img)

action = cv2.waitKey(1)
if action==27:
break
Expand All @@ -335,6 +341,6 @@
# if N <= 30:
# if R < nSamples:
# cv2.imwrite(str(write_location), img)
# N = N + 1
N = N + 1

cv2.destroyAllWindows()

0 comments on commit 7db3100

Please sign in to comment.