From 8169c56e3266e9c6698c922e739ecc2ae6ee6a7b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 3 Sep 2023 21:32:31 -0300 Subject: Unsorted changes --- raw/ATTRIBUTION.md | 12 +++++++----- units.py | 27 ++++++++++++++++++++++++--- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/raw/ATTRIBUTION.md b/raw/ATTRIBUTION.md index 0e4c0f1..1f2af48 100644 --- a/raw/ATTRIBUTION.md +++ b/raw/ATTRIBUTION.md @@ -66,6 +66,8 @@ https://argentumage.com/ (Citadel - Argentum Age) https://archive.org/details/Wootha_Public_Domain (Wootha Public Domain Release) https://spark.adobe.com/page/ucLFuLOEKK9Uo/ (Wootha's Homepage) +Is Lord Bob, Emilien Rotival? + --------------------------------------------------------------------------------- # Folder path/to/the/licensed/work.something (Author) (License) (Notes/Contributors/Authors/Co-Authors/Sources/etc.) @@ -150,7 +152,7 @@ https://spark.adobe.com/page/ucLFuLOEKK9Uo/ (Wootha's Homepage) 101006 Happy New Year 2008 (David Revoy) (CC BY) (DavidRevoy.com/Edit) 101007 If Uluk the Swift (Lisanguyen) (CC BY SA) (Argentum) 101008 Anthem of Battle (StephenWang) (CC BY SA) (Argentum/Edit) - 101009 Cleric of the Vanguard (Lisanguyen) (CC BY SA) (Argentum/Edit) + *101009 Cleric of the Vanguard (Lisanguyen) (CC BY SA) (Argentum/Edit) 101010 Frost Blast (Enjinn) (CC BY SA) (Argentum/Edit) 101011 Gezzix Lord of Death (Lisanguyen) (CC BY SA) (Argentum/Edit) 101012 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) @@ -182,7 +184,7 @@ https://spark.adobe.com/page/ucLFuLOEKK9Uo/ (Wootha's Homepage) 102006 Graphics Testing (David Revoy) (CC BY) (DavidRevoy.com/Edit) 102007 Eji the Summoner (Lisanguyen) (CC BY SA) (Argentum) 102008 Librarian (David Revoy) (CC BY SA) (DavidRevoy.com/Edited) - 102009 Rihns Anointed (Luciana Nascimento) (CC BY SA) (Argentum/Edit) + *102009 Rihns Anointed (Luciana Nascimento) (CC BY SA) (Argentum/Edit) 102010 Shichimi in Combat Mode (David Revoy) (CC BY SA) (DavidRevoy.com) 102011 Winter (David Revoy) (CC BY SA) (DavidRevoy.com) 102012 Pepper (AUTHOR) (CC BY SA) (DavidRevoy.com) @@ -220,7 +222,7 @@ https://spark.adobe.com/page/ucLFuLOEKK9Uo/ (Wootha's Homepage) 103006 Chaos & Evolutions (David Revoy) (CC BY) (DavidRevoy.com/Edited) 103007 Eager Swordsman (Lisanguyen) (CC BY SA) (Argentum) 103008 Acolyte (Lucy/Luciana Nascimento) (CC BY SA) (Argentum) - 103009 Knife in the Dark (Luciana Nascimento) (CC BY SA) (Argentum/Edit) + *103009 Knife in the Dark (Luciana Nascimento) (CC BY SA) (Argentum/Edit) 103010 Spell Warden (Lisanguyen) (CC BY SA) (Argentum/Edit) 103011 Sul Dahl Devout (Lisanguyen) (CC BY SA) (Argentum/Edit) 103012 Loyal Guard (Lisanguyen) (CC BY SA) (Argentum/Edit) @@ -262,7 +264,7 @@ https://spark.adobe.com/page/ucLFuLOEKK9Uo/ (Wootha's Homepage) 104006 Saffron Steampunk Clothes (David Revoy) (CC BY) (DavidRevoy.com/Edit) 104007 Deephelm Explorer (Stephenwang) (CC BY SA) (Argentum) 104008 Devout Priest (Lord Bob) (CC BY SA) (Argentum) - 104009 Endless Studies (Luciana Nascimento) (CC BY SA) (Argentum) + *104009 Endless Studies (Luciana Nascimento) (CC BY SA) (Argentum) 104010 Goodess (Luciana Nascimento) (CC BY SA) (Argentum) 104011 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) 104012 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) @@ -295,7 +297,7 @@ https://spark.adobe.com/page/ucLFuLOEKK9Uo/ (Wootha's Homepage) 105009 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) 105010 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) 105010 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) - 105011 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) + *105011 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) 105012 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) 105013 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) 105014 AI GENERATED ART (Ophoria) (CC BY SA) (MidJourney) diff --git a/units.py b/units.py index 8cdbba7..6a656cc 100755 --- a/units.py +++ b/units.py @@ -70,9 +70,30 @@ for it in FILES: break if len(faces) != 1: - print("\033[1mERROR: %s has %d faces, no square possible!\033[0m" % (it, len(faces))) - bf1.append("* ERROR: %s needs a square\n" % it) - continue + print("INFO: %s has %d anime faces, no square possible!" % (it, len(faces))) + print("Retrying with human face...") + cPath="lbpcascade_face.xml" + iPath="ready-units/%s" % it + cascade=cv2.CascadeClassifier(cPath) + org_img=cv2.imread(iPath) + img=cv2.cvtColor(org_img, cv2.COLOR_BGR2GRAY) + maxi = 3.2 + step = 0.1 + curr = 1.0 + faces = [] + # Detect faces + while len(faces) != 1: + if curr == 1.0: + faces = cascade.detectMultiScale(img, scaleFactor=1.01, minNeighbors=5) + else: + faces = cascade.detectMultiScale(img, scaleFactor=curr, minNeighbors=5) + curr+=step + if curr > maxi: + break + if len(faces) != 1: + print("\033[1mERROR: %s has %d faces, no square possible!\033[0m" % (it, len(faces))) + bf1.append("* ERROR: %s needs a square\n" % it) + continue face=faces[0] -- cgit v1.2.3-60-g2f50