Skip to content

Instantly share code, notes, and snippets.

@harunkurtdev
harunkurtdev / video_udp.py
Created March 16, 2024 20:28 — forked from patrickelectric/video_udp.py
Get video from gstreamer udp with python and visualize with OpenCV
#!/usr/bin/env python
import cv2
import gi
import numpy as np
gi.require_version('Gst', '1.0')
from gi.repository import Gst
@harunkurtdev
harunkurtdev / main.py
Last active March 3, 2024 13:37
yolov8-uav
from ultralytics import YOLO
import cv2
import cvzone
import math
import time
classNames = ["uav", "bicycle", "car", "motorbike", "aeroplane", "bus", "train", "truck", "boat",
"traffic light", "fire hydrant", "stop sign", "parking meter", "bench", "bird", "cat",
"dog", "horse", "sheep", "cow", "elephant", "bear", "zebra", "giraffe", "backpack", "umbrella",
"handbag", "tie", "suitcase", "frisbee", "skis", "snowboard", "sports ball", "kite", "baseball bat",
@harunkurtdev
harunkurtdev / intel-edison-iot-linux.md
Created January 23, 2024 23:07 — forked from tappoz/intel-edison-iot-linux.md
Getting started with Intel Edison IoT board on a Linux Debian/Ubuntu environment

Make sure the following packages are installed

sudo apt-get install gdebi libncurses5:i386 libstdc++6:i386

Then install the Intel Phone Flash Tool Lite (cfr. their website), the key tool chain Intel provides to flash the Intel Edison board.

sudo gdebi phoneflashtoollite_5.2.4.0_linux_x86_64.deb 

Then you should be able to find the gui (graphical user interface) at /usr/bin/phoneflashtoollite and the cli (command line interface) at /usr/bin/phoneflashtoollitecli.

@harunkurtdev
harunkurtdev / chroot-to-pi.sh
Created September 19, 2023 06:44 — forked from htruong/chroot-to-pi.sh
Chroot to pi sd card
#!/bin/bash
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu desktop/laptop
# just much faster and more convenient
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689
# make sure you have issued
@harunkurtdev
harunkurtdev / Makefile
Created September 5, 2023 10:29 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@harunkurtdev
harunkurtdev / keyevents.json
Created September 1, 2023 11:58 — forked from arjunv/keyevents.json
All Android Key Events for usage with adb shell
{
"key_events": {
"key_unknown": "adb shell input keyevent 0",
"key_soft_left": "adb shell input keyevent 1",
"key_soft_right": "adb shell input keyevent 2",
"key_home": "adb shell input keyevent 3",
"key_back": "adb shell input keyevent 4",
"key_call": "adb shell input keyevent 5",
"key_endcall": "adb shell input keyevent 6",
"key_0": "adb shell input keyevent 7",
@harunkurtdev
harunkurtdev / README.md
Created August 29, 2023 10:05 — forked from corenel/README.md
RTSP Port Forwarding

之前在这里研究过的用iptables配置跨网段的端口转发

Assume we have the following network environments:

  • Device:
    • eth0 (192.168.6.59): for external access
    • enx000ec6a490c5 (192.168.1.2): for ip camera
  • IP Camera:192.168.1.10
  • PC:192.168.6.2
@harunkurtdev
harunkurtdev / zeromq.sh
Last active August 4, 2023 11:36 — forked from pwichmann/zeromq.sh
How to install ZeroMQ on Ubuntu
#!/bin/bash
# Install required packages and dependencies
sudo apt-get update
sudo apt-get install -y libltdl-dev pkg-config build-essential autoconf automake
# Install libsodium
git clone https://github.com/jedisct1/libsodium.git
cd libsodium
./autogen.sh
import 'package:app/app.dart' as app;
class MarkerID {
final String? markerID;
MarkerID({this.markerID});
}
class Marker {
final MarkerID? markerID;
final void onTap;
@harunkurtdev
harunkurtdev / triangulation.py
Created January 20, 2023 18:45 — forked from davegreenwood/triangulation.py
Triangulate image points to world points comparing openCV to pure python.
from __future__ import print_function
import numpy as np
import cv2
import time
np.set_printoptions(formatter={'float': '{: 0.3f}'.format})
def triangulate_nviews(P, ip):
"""