summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-09-03 21:32:31 -0300
committerJesusaves <cpntb1@ymail.com>2023-09-03 21:32:31 -0300
commit8169c56e3266e9c6698c922e739ecc2ae6ee6a7b (patch)
tree20454555c782610bc3259373f7f087d8a695d5eb
parentf0ad703737566f29496e0a7f4b204f28e6abfeda (diff)
downloadupdates-8169c56e3266e9c6698c922e739ecc2ae6ee6a7b.tar.gz
updates-8169c56e3266e9c6698c922e739ecc2ae6ee6a7b.tar.bz2
updates-8169c56e3266e9c6698c922e739ecc2ae6ee6a7b.tar.xz
updates-8169c56e3266e9c6698c922e739ecc2ae6ee6a7b.zip
Unsorted changesv2.3.9.3
-rw-r--r--raw/ATTRIBUTION.md12
-rwxr-xr-xunits.py27
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]