Skip to content

Instantly share code, notes, and snippets.

Avatar

Jaskirat Singh jaskiratsingh2000

View GitHub Profile
View newdc.py
import os
import argparse
import cv2
from glob import glob
import numpy as np
def loadData():
#path for the groundtruth images and masks
View Error.md

Command Ran:

/usr/bin/salloc -n 20 -J interactive -p ihub -A mobility_arfs --gres=gpu:2 -t 12:00:00 /usr/bin/srun  --pty --cpu_bind=no /bin/bash -l
python3 infer.py --cfg /home2/jaskirat.singh/Drone-based-building-assessment/win_det_heatmaps/experiments/shufflenet/lr1e-3_120x90-110_center_b2.yaml 
                 --model /home2/jaskirat.singh/shufflenet_zjufacade+iiitH.pth
                 --infer /home2/jaskirat.singh/002
View RunningMotors.py
import RPi.GPIO as GPIO
import time
#GPIO Mode (BOARD / BCM)
GPIO.setmode(GPIO.BCM)
#Setting GPIO Pins for the Motor A
DirMotorA = 27
PwmMotorA = 22
View UltrasonicProgram.py
import RPi.GPIO as GPIO
import time
#GPIO Mode (BOARD / BCM)
GPIO.setmode(GPIO.BCM)
#set GPIO Pins for Ultasonic Senor1 (Front Face)
gpioTrigger1 = 4
gpioEcho1 = 17
@jaskiratsingh2000
jaskiratsingh2000 / README.md
Created Jun 14, 2021 — forked from willprice/README.md
Install OpenCV 4.1.2 for Raspberry Pi 3 or 4 (Raspbian Buster)
View README.md

Install OpenCV 4.1.2 on Raspbian Buster

$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.2/build
$ sudo make install
View error
.9/pandas/tests/groupby/aggregate
copying pandas/tests/groupby/aggregate/test_cython.py -> build/lib.linux-armv7l-3.9/pandas/tests/groupby/aggregate
creating build/lib.linux-armv7l-3.9/pandas/tests/tseries/frequencies
copying pandas/tests/tseries/frequencies/test_inference.py -> build/lib.linux-armv7l-3.9/pandas/tests/tseries/frequencies
copying pandas/tests/tseries/frequencies/test_frequencies.py -> build/lib.linux-armv7l-3.9/pandas/tests/tseries/frequencies
copying pandas/tests/tseries/frequencies/test_freq_code.py -> build/lib.linux-armv7l-3.9/pandas/tests/tseries/frequencies
copying pandas/tests/tseries/frequencies/__init__.py -> build/lib.linux-armv7l-3.9/pandas/tests/tseries/frequencies
creating build/lib.linux-armv7l-3.9/pandas/tests/tseries/offsets
copying pandas/tests/tseries/offsets/test_offsets.py -> build/lib.linux-armv7l-3.9/pandas/tests/tseries/offsets
copying pandas/tests/tseries/offsets/test_ticks.py -> build/lib.linux-armv7l-3.9/pandas/tests/tseries/offsets
View link
View MatrixProgram.c
#include <stdio.h>
void matrixReadValues(int rows, int columns, int readInput[rows][columns]);
void matrixPrint(int rows, int columns, int readOutput[rows][columns]);
void matrixAddition(int rows, int columns, int matrix1[rows][columns], int matrix2[rows][columns]);
void matrixSubtraction(int rows, int columns, int matrix1[rows][columns], int matrix2[rows][columns]);
void matrixMultiplication(int rowsA, int columnsA, int rowsB, int columnsB, int matrix1[rowsA][columnsA], int matrix2[rowsB][columnsB]);
void matrixTransposePrint(int rows, int columns, int matrixTranspose[rows][columns]);
int matrixDeterminant(int rows, int columns, int matrixDet[rows][columns], int matrixOrder);
void matrixRowEchleonForm(int rows, int columns, int matrix1[rows][columns]);
View program.c
#include <stdio.h>
struct dimensions{
int rowsNumber;
int columnsNumber;
};
struct dimensions readTwoIdenticalDimensions();
void readMatrixDimentions(struct dimensions *dimensions, char name[]);
void matrixReadValues(int rows, int columns, int readInput[rows][columns]);