Skip to content

Instantly share code, notes, and snippets.

View ardadi's full-sized avatar
💭
(:

Arda Dindar ardadi

💭
(:
View GitHub Profile
@Hermann-SW
Hermann-SW / GScrop
Last active May 9, 2024 02:31
tool for playing with Raspberry Pi Global Shutter Camera crop values
#!/bin/bash
# shellcheck disable=SC2154
# (silence shellcheck wrt $cam1 environment variable)
if [[ $# -lt 4 ]]; then echo "Format: [narrow=1] [cam1=1] $0 width height framerate ms [us]"; exit; fi
if [[ "$(( $1 % 2 ))" -eq 1 ]]; then echo "width has to be even"; exit; fi
if [[ "$(( $2 % 2 ))" -eq 1 ]]; then echo "height has to be even"; exit; fi
export SHTR=""; if [[ $# -gt 4 ]]; then SHTR="--shutter"; fi
export workaround=""; if [[ "" != "$(grep '=bookworm' /etc/os-release)" ]]; then workaround="--no-raw"; fi
export d=10; if [[ "" != "$(grep "Revision.*: ...17.$" /proc/cpuinfo)" ]]; then if [[ "$cam1" == "" ]]; then d=6; else d=4; fi; fi
for((m=0; m<=5; ++m))
#!/usr/bin/env python3
'''
always getting the most recent frame of a camera
================================================
Usage:
------
freshest_camera_frame.py
# SD card setup guide
https://www.raspberrypi.org/documentation/installation/installing-images/README.md
# Download latest version
wget https://downloads.raspberrypi.org/raspbian_lite_latest
# Create empty file named ssh under boot folder to enable SSH support
touch ssh
# Create wifi connection detail file under boot folder
@gabonator
gabonator / password.txt
Last active July 3, 2024 07:22
HiSilicon IP camera root passwords
Summary of passwords by sperglord8008s, updated November 1. 2020. For login try "root", "default", "defaul" or "root"
00000000
059AnkJ
4uvdzKqBkj.jg
7ujMko0admin
7ujMko0vizxv
123
1111
1234