Webcam parts:
- Raspberry Pi Zero W Rev 1.1
- Raspberry Pi Camera v2 (8-megapixel)
- Raspberry Pi High Quality Camera (12.3-megapixel)
- Raspbian Buster Lite 2020-02-13
Webcam works with:
- Windows 10
- Windows 10 "Camera" app
This is a collection of code snippets for various features on the STM8S family microcontrollers (specifically the STM8S003F3). These are written against the STM8S/A SPL headers and compiled using SDCC.
Some of this controller's functions aren't particularly intuitive to program, so I'm dumping samples for future reference here. These are based on the STM8S documentation:
#include <iostream> | |
#include <tf/tf.h> | |
int main(){ | |
/**< Declaration of quaternion */ | |
tf::Quaternion q; | |
q.setW(1); | |
q.setX(0); | |
q.setY(0); |
#!/bin/bash | |
MENDER_SERVER_URL="https://hosted.mender.io" | |
MENDER_TENANT_TOKEN="" | |
MENDER_DEVICE_TYPE="" | |
# This variable is mutable | |
MENDER_ARTIFACT_NAME="release-v1" | |
function show_help() { |
#!/usr/bin/env bash | |
set -eu | |
# (C) 2019 Daisuke Sato | |
# https://tiryoh.mit-license.org/2019 | |
# Special thanks to @nomumu | |
sudo apt update | |
sudo apt install -y build-essential gdebi | |
mkdir -p ~/tmp && pushd ~/tmp |
# Original Matlab code https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html | |
# | |
# | |
# Python port of depth filling code from NYU toolbox | |
# Speed needs to be improved | |
# | |
# Uses 'pypardiso' solver | |
# | |
import scipy | |
import skimage |
###################################### | |
# INSTALL OPENCV ON UBUNTU OR DEBIAN # | |
###################################### | |
# Use below command to install OpenCV 3.2 with Contrib at Ubuntu or Debian on your own operating system. | |
# wget -O - https://gist.githubusercontent.com/syneart/3e6bb68de8b6390d2eb18bff67767dcb/raw/OpenCV3.2withContrib.sh | bash | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |-----------------------------------------------------------| | |
# | OS | OpenCV | CUDA | Test | Last test | |
2017-03-03 fm4dd
The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.
These flags can both be used to set the CPU type. Setting one or the other is sufficient.
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
namespace UDP | |
{ | |
public class UDPSocket | |
{ | |
private Socket _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); |
#include <iostream> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <linux/ioctl.h> | |
#include <linux/types.h> | |
#include <linux/v4l2-common.h> | |
#include <linux/v4l2-controls.h> | |
#include <linux/videodev2.h> | |
#include <fcntl.h> | |
#include <unistd.h> |