Skip to content

Instantly share code, notes, and snippets.

import os
from flask import Flask, flash, request, redirect, url_for, jsonify
import util_mobilnet
import numpy as np
import os, cv2
from flask_cors import CORS
# settings
UPLOAD_FOLDER = '.'
ALLOWED_EXTENSIONS = set(['png', 'jpg', 'jpeg'])
@AlexeyGy
AlexeyGy / .bashrc.sh
Last active May 19, 2019 12:14
.bashrc
source ~/Downloads/inference_engine_vpu_arm/bin/setupvars.sh
~/Downloads/inference_engine_vpu_arm/install_dependencies/install_NCS_udev_rules.sh
cd ~/detection_server && ./RUN.sh
module.exports = {
rpc: {
host: "localhost",
port: 8543
},
@AlexeyGy
AlexeyGy / coco2pascal.py
Last active July 22, 2022 09:25
Convert MS COCO Annotation to Pascal VOC format for python3 and with tqdm
import baker
import json
import os
from cytoolz import merge, join, groupby
from cytoolz.compatibility import iteritems
from cytoolz.curried import update_in
from itertools import starmap
from collections import deque
from lxml import etree, objectify
from scipy.io import savemat
@AlexeyGy
AlexeyGy / eur0pa-dks_deathtoll_2015_update.py
Last active May 10, 2017 02:00 — forked from eur0pa/eur0pa-dks_deathtoll.py
Dark Souls Deaths Counter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import struct
import sys
sys.stdout.flush()
def main():
with open('DRAKS0005.sl2', 'rb') as fo:
fo.seek(0x3c0, 0)