Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class UpgradedImageIExtractor(httpClient: HttpClient, article: Article, config:
mainImage.imageSrc = highScoreImage._1.imgSrc
mainImage.imageExtractionType = "bigimage"
mainImage.bytes = highScoreImage._1.bytes
mainImage.width = highScoreImage._1.width
mainImage.height = highScoreImage._1.height
mainImage.confidenceScore = if (scoredImages.size > 0) (100 / scoredImages.size) else 0
trace("IMAGE COMPLETE: High Score Image is: " + mainImage.imageSrc + " Score is: " + highScoreImage._2)
return Some(mainImage)
Expand Down Expand Up @@ -542,4 +544,4 @@ object UpgradedImageIExtractor {

val KNOWN_IMG_DOM_NAMES = ListBuffer("yn-story-related-media", "cnn_strylccimg300cntr", "big_photo", "ap-smallphoto-a")

}
}