Skip to content

Instantly share code, notes, and snippets.

View eknight7's full-sized avatar

Esha Uboweja eknight7

  • Mountain View, CA
View GitHub Profile
@eknight7
eknight7 / string_to_render_data_calculator BUILD
Last active March 21, 2020 18:05
MediaPipe calculator to generate RenderData object from an std::string. The calculator displays the text on the top-left of the screen.
cc_library(
name = "string_to_render_data_calculator",
srcs = ["string_to_render_data_calculator.cc"],
visibility = ["//visibility:public"],
deps =[
"//mediapipe/framework:calculator_framework",
"//mediapipe/framework/port:ret_check",
"//mediapipe/util:render_data_cc_proto",
"@com_google_absl//absl/memory",
],
@eknight7
eknight7 / BUILD
Last active February 8, 2023 06:24
Multi-Hand Tracking via Live Webcam on CPU on Desktop: Shows how to extract landmarks on desktop.
// Copyright 2019 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
struct Node {
int value;
Node *left;
Node *right;
};
struct Tree {
Node *root;
};
struct Node {
int value;
Node *left;
Node *right;
};
struct Tree {
Node *root;
};
struct Node {
int value;
Node *prev;
Node *next;
Lock *lock;
};
struct DList {
Node *head;
Lock *lock;
@eknight7
eknight7 / sorted_doubly_linked_list.cpp
Last active March 22, 2016 13:22
Sorted Doubly Linked List
struct Node {
int value;
Node *prev;
Node *next;
};
struct DList {
Node *head;
};
@eknight7
eknight7 / fps_opencv.cpp
Created January 12, 2016 18:03
Compute frame rate of video captured from a web cam using OpenCV and C++
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <time.h>
#define DEBUG 1
using namespace cv;
using namespace std;