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
#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]); |
#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]); |
https://itheo.nl/install-python-3-9-on-raspberry-pi#:~:text=Install%20Python%203.9%20on%20a%20Raspberry%20PI&text=this%20takes%20a%20while%2C%20grab,untar%20it%20and%20compile%20it.&text=Building%20and%20compiling%20python%20can,lets%20install%20what%20was%20build! |
.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 |
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
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 |
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 |
/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
import os | |
import argparse | |
import cv2 | |
from glob import glob | |
import numpy as np | |
def loadData(): | |
#path for the groundtruth images and masks |
WHAT I'M TRYING TO DO?
I am trying to select the cordinates points on mouse click using cv2.setMouseCallback()
function and printing the cordinates of every mouse click. I have put on the condition that the cordinates will be printed only until the counter and counterm is less than equal to 5 for two different functons, namely clickEventCTscanImage(event, x, y, flags, param)
and clickEventMRIscanImage(event, x, y, flags, param)
respectively.
WHAT I WANT TO ACHIEVE? I want to achieve that when I have selected the 5 points in totall the specific image should get closed and the second image should get automatically open ups and asks to perform the same function. that means the CT Scan image after achieving 5 points should get closed automatically and MRI image should open up for selecting the points and on selecting the points it should also get closed and then further code should executed aftewr printing in a following way:
Output to achieve:
[![enter image description here](https://i.stack.