PostgresML is a machine learning extension for PostgreSQL that enables you to perform training and inference on text and tabular data using SQL queries.
PostgresML - это расширение машинного обучения для PostgreSQL, позволяющее выполнять обучение и выводы на текстовых и табличных данных с помощью SQL-запросов.
▪Github
@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
A Complete Guide to Using Multiple Databases in Django
Руководство по использованию нескольких баз данных в Django.
@pythonl
Руководство по использованию нескольких баз данных в Django.
@pythonl
👁🗨 Running YOLOv7 algorithm on your webcam using Ikomia API
Запуск алгоритма YOLOv7 на веб-камере с помощью Ikomia API
▪Github
▪Docs
@pythonl
Запуск алгоритма YOLOv7 на веб-камере с помощью Ikomia API
pip install ikomia
from ikomia.dataprocess.workflow import Workflow
from ikomia.utils import ik
from ikomia.utils.displayIO import display
import cv2
stream = cv2.VideoCapture(0)
# Init the workflow
wf = Workflow()
# Add color conversion
cvt = wf.add_task(ik.ocv_color_conversion(code=str(cv2.COLOR_BGR2RGB)), auto_connect=True)
# Add YOLOv7 detection
yolo = wf.add_task(ik.infer_yolo_v7(conf_thres="0.7"), auto_connect=True)
while True:
ret, frame = stream.read()
# Test if streaming is OK
if not ret:
continue
# Run workflow on image
wf.run_on(frame)
# Display results from "yolo"
display(
yolo.get_image_with_graphics(),
title="Object Detection - press 'q' to quit",
viewer="opencv"
)
# Press 'q' to quit the streaming process
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# After the loop release the stream object
stream.release()
# Destroy all windows
cv2.destroyAllWindows()
▪Github
▪Docs
@pythonl
Очарование Python: Создание приложения для распознавания лиц с помощью DeepFace
Шаг 1: Импорт библиотеки (рис 1.)
Шаг 2: Создание графического интерфейса и подключение к базе данных (рис 2.)
Шаг 3: Выбор первого изображения (рис 3.)
Шаг 4: Выбор второго изображения (рис 4.)
Шаг 5: Сохранение в базе данных (рис 5.)
Шаг 6: Анализ изображений (рис 6.)
Шаг 7: Добавление рамок и кнопок (рис 7.)
@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❄️FreezeGun: Let your Python tests travel through time
Unit tests require static input, but time is dynamic and constantly changing. With FreezeGun, you can freeze time to a specific point, ensuring accurate verification of the tested features.
Юнит-тесты требуют ввода статических данных, но время постоянно меняется. С помощью FreezeGun можно "заморозить" время до определенной точки, обеспечив точную проверку тестируемых функций.
▪Github
@pythonl
Unit tests require static input, but time is dynamic and constantly changing. With FreezeGun, you can freeze time to a specific point, ensuring accurate verification of the tested features.
Юнит-тесты требуют ввода статических данных, но время постоянно меняется. С помощью FreezeGun можно "заморозить" время до определенной точки, обеспечив точную проверку тестируемых функций.
▪Github
@pythonl