Skip to content

Instantly share code, notes, and snippets.

View amitbd1508's full-sized avatar
🎯
Focusing

Amit Ghosh amitbd1508

🎯
Focusing
  • Fidelity Investment | KForce Inc | Cefalo | Jeeon LLC | Shohoz Ltd. | Edublock | Threat Equitation Ltd. |
  • Dallas, Texas
  • X @amitbd1508
View GitHub Profile
# Copy the bellow code and save it as program.cmd then run program.cmd as administator
@echo off
title Office Activation Wizard&cls&echo ============================================================================&echo Office 2019 Standard and Office 2019 Pro Plus Activation&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ======================================
@amitbd1508
amitbd1508 / object_detection_with_labels.py
Created November 30, 2019 03:23 — forked from aallan/object_detection_with_labels.py
Object detection python demonstration code for use with Google's Edge TPU (now with labelling)
import argparse
import platform
import subprocess
from edgetpu.detection.engine import DetectionEngine
from PIL import Image
from PIL import ImageFont, ImageDraw
# Function to draw a rectangle with width > 1
def draw_rectangle(draw, coordinates, color, width=1):
for i in range(width):
@amitbd1508
amitbd1508 / video-to-image.py
Last active November 2, 2019 19:14
Extract image from video for image labeling/annotating (video-to-image.py) . || Visualize and verify label (visualize-and-verify-label.py)
import cv2
import argparse
def Convert_(current, dest_):
cap = cv2.VideoCapture(current)
counter=0
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
if frame is not None:
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev
@amitbd1508
amitbd1508 / .gitlab-ci.yml
Last active March 22, 2019 19:38
Gitlab-Ci pipeline configuration file
#################################
# GitLab Continuous Integration #
#################################
variables:
DEV_ACCOUNT_KEY_FILE: "dev-account-key.json"
DEV_PROJECT_ID: "<Your development project ID>"
DEV_BUCKET: "<Your google cloud bucket eg: gs://your-project-id.appspot.com/>"
PROD_ACCOUNT_KEY_FILE: "prod-account-key.json"
# README #
This README would normally document whatever steps are necessary to get your application up and running.
### What is this repository for? ###
* Quick summary
* Version
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)