This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Распознавание фигур с веб-камеры (без расстояний) | |
Фигуры: круг, эллипс, треугольник, квадрат, прямоугольник, многоугольники (5+). | |
Зависимости: | |
pip install opencv-python numpy | |
Управление: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
vector<int> g[20001]; | |
vector<bool> used(20001); | |
int timer; | |
vector<int> tin(20001); | |
vector<int> fup(20001); | |
map <pair<int,int>,int> mp_v; |