RetinaFace — передовой детектор лиц на Python, основанный на глубоком обучении, с ориентирами на лице. Эффективность обнаружения превосходно работает даже в толпе.
Установка:
pip install retina-face
Примеры использования:
from retinaface import RetinaFace
resp = RetinaFace.detect_faces("img1.jpg")
print(resp)
{
"face_1": {
"score": 0.9993440508842468,
"facial_area": [155, 81, 434, 443],
"landmarks": {
"right_eye": [257.82974, 209.64787],
"left_eye": [374.93427, 251.78687],
"nose": [303.4773, 299.91144],
"mouth_right": [228.37329, 338.73193],
"mouth_left": [320.21982, 374.58798]
}
}
}
#python #soft #github
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
👍37🔥15❤7🫡4
Основные характеристики Matplotlib:
линий, цвета, маркеры, метки и аннотации.
#doc #cheatsheet #python
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
👍33❤13🔥7😱1🫡1
Она способна одновременно проверять сотни серверов, экономя твое время и ресурсы.
Подходит для:
Особенности:
Простой пример:
import asyncio
from proxybroker import Broker
async def show(proxies):
while True:
proxy = await proxies.get()
if proxy is None:
break
print("Found proxy: %s" % proxy)
async def main():
proxies = asyncio.Queue()
broker = Broker(proxies)
await asyncio.gather(
broker.find(types=["HTTP", "HTTPS"], limit=10),
show(proxies)
)
if __name__ == "__main__":
asyncio.run(main())
#python #soft #github
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
👍20🔥5❤2