Skip to content

Instantly share code, notes, and snippets.

View eridanletalis's full-sized avatar

eridanletalis

  • Saint Petersburg
View GitHub Profile
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@eridanletalis
eridanletalis / rect_selector.cc
Created May 24, 2019 12:55 — forked from cirocosta/rect_selector.cc
Select a few rectangles in an image using C++11 and OpenCV 2.4
#include "opencv2/opencv.hpp"
#include <vector>
#include <iostream>
using cv::WINDOW_NORMAL;
using cv::imread;
using cv::waitKey;
using cv::setMouseCallback;
using cv::imshow;
def iter_group(queue):
buf = []
prev_key = None
for val in queue:
cur_key, cur_val = val
#print cur_key, cur_val
if cur_key == prev_key or prev_key is None:
buf.append(cur_val)
else: