Python/ django
59K subscribers
2.08K photos
62 videos
47 files
2.8K links
по всем вопросам @haarrp

@itchannels_telegram - 🔥 все ит-каналы

@ai_machinelearning_big_data -ML

@ArtificialIntelligencedl -AI

@datascienceiot - 📚

@pythonlbooks

РКН: clck.ru/3FmxmM
加入频道
Hand gesture recognition

Распознавание жестов рук.

import cv2
import mediapipe as mp

# Initialize MediaPipe Hands module
mp_hands = mp.solutions.hands
hands = mp_hands.Hands()

# Initialize MediaPipe Drawing module for drawing landmarks
mp_drawing = mp.solutions.drawing_utils

# Open a video capture object (0 for the default camera)
cap = cv2.VideoCapture(0)

while cap.isOpened():
ret, frame = cap.read()

if not ret:
continue

# Convert the frame to RGB format
frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)

# Process the frame to detect hands
results = hands.process(frame_rgb)

# Check if hands are detected
if results.multi_hand_landmarks:
for hand_landmarks in results.multi_hand_landmarks:
# Draw landmarks on the frame
mp_drawing.draw_landmarks(frame, hand_landmarks, mp_hands.HAND_CONNECTIONS)

# Display the frame with hand landmarks
cv2.imshow('Hand Recognition', frame)

# Exit when 'q' is pressed
if cv2.waitKey(1) & 0xFF == ord('q'):
break

# Release the video capture object and close the OpenCV windows
cap.release()
cv2.destroyAllWindows()

@pythonl
📈 Predictive Modeling for Future Stock Prices in Python: A Step-by-Step Guide

Процесс построения модели прогнозирования цен на акции с использованием Python.

1. Импорт необходимых модулей

2. Получение исторических данных о ценах на акции

3. Отбор фич.

4. Определение фич и целевой переменной

5. Подготовка данных к обучению

6. Разделение данных на обучающие и тестовые наборы

7. Построение и обучение модели

8. Составление прогнозов

9. Тестирование торговой стратегии


@pythonl
This media is not supported in your browser
VIEW IN TELEGRAM
🔠 tqdm: A Fast, Extensible Progress Bar for Python and CLI

Фреймворк для легкого и быстрого создания прогресс-баров на Python

pip install tqdm

Github

@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
😲 Awesome useful Python scripts

Полезные готовые скрипты Python.

1. JSON ↔️ CSV (рис. 1)
2. Password generator (рис. 2)
3. Строковый поиск из нескольких файлов (рис. 3)
4. Получение всех ссылок с заданной веб-страницы (рис. 4)
5. Добавляем водяной знак (рис. 5)
6.Парсер и загрузчик изображений с WEB-страницы (рис. 6)
7. Сортировка папки загрузки (рис. 7)
8. Массовая рассылка электронных писем из CSV-файла (рис. 8)
9. Получение IP-адреса и имени хоста веб-сайта (рис. 9)
10. Прогресс-бар терминала (рис. 10)

Scripts

@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM