Skip to content

Instantly share code, notes, and snippets.

View rajeshpachaikani's full-sized avatar

Rajesh rajeshpachaikani

View GitHub Profile
@rajeshpachaikani
rajeshpachaikani / video_generator.sh
Created May 26, 2025 05:14
Bash Script for creating videos with FFMPEG, ImageMagick and gTTS
#!/bin/bash
# Check if the right number of arguments were passed
if [ $# -ne 6 ]; then
echo "Usage: $0 \"primary_text\" \"secondary_text\" "KURAL_ENN" "Athigaram" input_image.png output.mp4"
echo "Example: $0 "இருள்சேர் இருவினையும் சேரா இறைவன்\nபொருள்சேர் புகழ்புரிந்தார் மாட்டு" "கடவுளின் மெய்மைப் புகழையே விரும்புபவரிடம் அறியாமை இருளால் வரும் நல்வினை தீவினை என்னும் இரண்டும் சேருவதில்லை" "5" "கடவுள் வாழ்த்து" bg.png kural5.mp4"
exit 1
fi
# Assign arguments to variables
@rajeshpachaikani
rajeshpachaikani / docker-compose.yaml
Last active June 30, 2025 12:28
Odoo docker compose file
#Odoo-docker-directory
#├── addons
#├── config
#│   └── odoo.conf
#├── docker-compose.yaml
#├── odoo_pg_pass
#└── sessions
# Create a config file inside the config directory with the following content
# [options]
@rajeshpachaikani
rajeshpachaikani / main.rs
Created December 9, 2022 14:29
RUST - ESP32-C3 Connect to WiFi
// Dependencies
// esp-idf-sys = { version = "0.31.11", features = ["binstart"] }
// esp-idf-svc = "0.43.4"
// esp-idf-hal = "0.39.3"
// embedded-hal = "0.2.7"
// embedded-svc = "0.23.1"
use std::{
thread::sleep,
time::Duration,
@rajeshpachaikani
rajeshpachaikani / color_editor.py
Created January 29, 2022 09:40
This snippet demonstrates the use of hsv color space in editing the overall color output of the image
import cv2
import numpy as np
#Reading an image (https://i.imgur.com/cdmHQiR.jpg)
img = cv2.imread('blue.jpg')
cv2.imshow('Original', img)
#Converting image to HSV Colorspace
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
cv2.imshow('HSV', hsv)
@rajeshpachaikani
rajeshpachaikani / main.rs
Last active June 14, 2025 18:30
Face and Eye detection using Opencv On Rustlang
use opencv::{
Result,
prelude::*,
objdetect,
highgui,
imgproc,
core,
types,
videoio,
};
@rajeshpachaikani
rajeshpachaikani / main.rs
Created November 14, 2021 11:14
Rust opencv demo
/*
Author: Rajesh Pachaikani
Contact: [email protected]
*/
use opencv::{highgui, prelude::*, videoio, Result};
fn main() -> Result<()> {
let mut cam = videoio::VideoCapture::new(0, videoio::CAP_ANY)?;
highgui::named_window("window", highgui::WINDOW_FULLSCREEN)?;