Skip to content

Commit

Permalink
resize (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlenfesty authored and jackykc committed Jul 30, 2019
1 parent 04b0f95 commit cd8629e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions checkLabels.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def loadImage(self, file_name, directory_name):
CLASSES AND LABELS'''
directory = os.path.join(self.cwd, directory_name)
image = cv2.imread(os.path.join(directory, file_name))
image = cv2.resize(image, (1280, 720))
sizeHW = [image.shape[0], image.shape[1]]
text_file = file_name.split('.')[0]+'.txt'

Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ int main(int argc, char** argv ) {
/*========================== main loop ================================*/
while (!finished) {
frame = getFrame(image_paths, frame_index);
cv::resize(frame, frame, cv::Size(1280, 720));
if (rois.size() > frame_index) { // already computed
result = rois[frame_index];
} else {
Expand Down

0 comments on commit cd8629e

Please sign in to comment.