Skip to content

Instantly share code, notes, and snippets.

View ShauryaAg's full-sized avatar
:shipit:
zzzzz

Shaurya Agarwal ShauryaAg

:shipit:
zzzzz
View GitHub Profile

How to approach image overlay problems

Every image has three channels: R, G, B, that is, Red, Green and Blue which is used to define the pixel value at any point in the image, where the value of red, green or blue lies between 0-255.

For example: a pixel value of [255, 0, 0] would be all RED, and [255, 255, 0] would be a mix of RED and GREEN, which gives a YELLOW color. But, if the image is read using OpenCV, it yields the image in BGR format, that is, [255, 0, 0] would be BLUE and so on.

Installing OpenCV

OpenCV is an open-source library for image manipulation in Python or C language. For Python OpenCV can be downloaded using pip install opencv-python.

@ShauryaAg
ShauryaAg / git-explaination.md
Last active August 22, 2019 16:14
A basic explanation of git for beginners

Git is a version control system. A version control system is a tool that helps in maintaining different versions of a project. Like if you made a project and then realised you need another feature in the project, but while coding the new feature you screwed up and need to know what mistake did you make, you can look at the previous version of the code that was not screwed up.

Some Terminologies:

Repository: The folder of the project.

Remote Repository: The folder that is available online.

Cloning: Downloading the code from the remote repository.

@ShauryaAg
ShauryaAg / git-cheat-sheet.md
Last active June 17, 2019 20:09
List of most used git commands

Configure Tooling

git config --global user.name "[name]"
Sets the name you want attatched to your commit transactions

git config --global user.email "[email]"
Sets the email you want attatched to your commit transactions

git config --global color.ui auto
Enables helpful colorization of command line output