Skip to content

Instantly share code, notes, and snippets.

View bharath5673's full-sized avatar

bharath bharath5673

View GitHub Profile

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@luuil
luuil / videos_grid.py
Last active July 4, 2024 02:12
Merging multiple videos/images/empty_frames into one grid video by opencv, PIL and numpy
import cv2
import os
import numpy as np
from PIL import Image, ImageFont, ImageDraw
from typing import Tuple, Optional, Union, List
from dataclasses import dataclass, InitVar
import sys
from pathlib import Path
from enum import Enum
import logging
@Amir22010
Amir22010 / convert_voc_to_yolo.md
Created February 22, 2020 22:01 — forked from myounus96/convert_voc_to_yolo.md
convert pascal voc dataset to yolo format

Convert PascalVOC Annotations to YOLO

This script reads PascalVOC xml files, and converts them to YOLO txt files.

Note: This script was written and tested on Ubuntu. YMMV on other OS's.

Disclaimer: This code is a modified version of Joseph Redmon's voc_label.py

Instructions:

  1. Place the convert_voc_to_yolo.py file into your data folder.
@ccj5351
ccj5351 / VOClabelcolormap.m
Last active June 11, 2021 13:06 — forked from wllhf/VOClabelcolormap.py
Python implementation of the color map function for the PASCAL VOC data set.
%Official Matlab version can be found in the PASCAL VOC devkit
%http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html#devkit
% VOCLABELCOLORMAP Creates a label color map such that adjacent indices have different
% colors. Useful for reading and writing index images which contain large indices,
% by encoding them as RGB images.
%
% CMAP = VOCLABELCOLORMAP(N) creates a label color map with N entries.
function cmap = labelcolormap(N)
@nfsrules
nfsrules / video_writing.py
Last active June 18, 2019 12:42
Video writing with OpenCV
# Create video writer
writer = cv2.VideoWriter("sample_output.avi",
cv2.VideoWriter_fourcc(*"MJPG"),
30,(1800,480))
for frame in tqdm(merged_maps):
writer.write(frame.astype('uint8'))
writer.release()
@kittinan
kittinan / client.py
Last active July 18, 2024 14:05
Python OpenCV webcam send image frame over socket
import cv2
import io
import socket
import struct
import time
import pickle
import zlib
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(('192.168.1.124', 8485))
@QCaudron
QCaudron / cuda-ubuntu-installation.md
Created January 14, 2018 00:15 — forked from yohanesgultom/cuda-ubuntu-installation.md
NVIDIA CUDA installation and configuration notes

CUDA installation on Ubuntu

Made based on CUDA 9 installation

Download CUDA https://developer.nvidia.com/cuda-downloads Run commands:

sudo dpkg -i cuda-repo-<version>.deb
sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub
sudo apt-get update
@keithweaver
keithweaver / split-video-by-frame.py
Created May 10, 2017 19:30
Using OpenCV takes a mp4 video and produces a number of images.
'''
Using OpenCV takes a mp4 video and produces a number of images.
Requirements
----
You require OpenCV 3.2 to be installed.
Run
----
Open the main.py and edit the path to the video. Then run:
@fchollet
fchollet / classifier_from_little_data_script_1.py
Last active July 16, 2024 11:16
Updated to the Keras 2.0 API.
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
@TheSalarKhan
TheSalarKhan / transform.py
Created March 23, 2016 22:19
Perspective transformation using Open CV and Python
# This script does a perspective transformation with an A4 paper
# Get an A4 sheet, put it on a table in front of your webcam
# just close enough so that all its corners are visible.
# Run this script, you will be given a frame from the webcam.
# Pick the corners of the A4 sheet for the software, by double clicking on its corners
# one by one in the following order: top left, top right, bottom left, bottom right.
# Just as you select the last corner, a live feed without the perspective distortion
# shows up and now you can write something on it, and have a view of it as if
# the camera was right on top of it. Cheers!
# visit: