There was a few issues with the web scraping not working and then the adding your face. The api was returning HTML images, not JSON which really messed with the program. Also the worker kept timing out so i moved it to a backround thread so that the request returns immediately. There were some issues with the api key being blocked due to too many requests, so i decreased the amount of tries and increased the sleep delays (for faster performance as it should be fine with two calls in a shorter time). Another issue was that the images kep getting rejected as the program kept thinking there were no faces when there was, so the detection threshold got lowered from 0.6-0.5, it should still be detecting faces but no longer with such strict requirements. Also i increased the images from 5 - 10 for duck duck go search to have a better chance of finding a proper image.
Log in to leave a comment