Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdate Image Report to Score Images From Metadata Higher #8
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shawnmjones commentedJun 16, 2020
The current scores produced by
hc report image-data
are not as effective as they could be. Humans may have already supplied their desired striking images in the metadata of the web pages making up the collection.Hypercane's existing image scoring function in
hypercane/report/imagedata.py:rank_images
currently adds image properties to a list on lines 143 - 152hypercane/hypercane/report/imagedata.py
Lines 143 to 152 in 44491c3
Add another column to the left containing values of 1 or 0. If Hypercane discovers the image in the metadata, set this column to 1 otherwise 0. This way, when the sorting occurs on line 154, all images discovered in the metadata will exist at the highest ranks in the list and then will be sorted by their MementoEmbed score.