Skip to content

Commit

Permalink
fixed croppost.py
Browse files Browse the repository at this point in the history
  • Loading branch information
piterand committed Nov 13, 2023
1 parent 2825454 commit 027e818
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ammico/cropposts.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,13 @@ def crop_media_posts(

# get the reference images with regions that signify areas to crop
ref_views = []
for ref_file in ref_files:
ref_file_path = ref_files[ref_file]["filename"]
for ref_file in ref_files.values():
ref_file_path = ref_file["filename"]
ref_view = cv2.imread(ref_file_path)
ref_views.append(ref_view)
# parse through the social media posts to be cropped
for crop_file in files:
crop_file_path = files[crop_file]["filename"]
for crop_file in files.values():
crop_file_path = crop_file["filename"]
view = cv2.imread(crop_file_path)
print("Doing file {}".format(crop_file_path))
crop_view = crop_posts_from_refs(
Expand Down

0 comments on commit 027e818

Please sign in to comment.