Skip to content

Instantly share code, notes, and snippets.

View NeoPolus's full-sized avatar

Borja López Soilán NeoPolus

View GitHub Profile
@CarlosGS
CarlosGS / raspberry_fast_capture.py
Last active February 26, 2024 04:16
Fast reading from the raspberry camera with Python, Numpy, and OpenCV. See the comments for more details.
# Fast reading from the raspberry camera with Python, Numpy, and OpenCV
# Allows to process grayscale video up to 124 FPS (tested in Raspberry Zero Wifi with V2.1 camera)
#
# Made by @CarlosGS in May 2017
# Club de Robotica - Universidad Autonoma de Madrid
# http://crm.ii.uam.es/
# License: Public Domain, attribution appreciated
import cv2
import numpy as np
@tierra
tierra / sort_pidgin_groups.py
Created November 2, 2012 16:25
Sort Pidgin Groups
#!/usr/bin/python
import xml.etree.ElementTree as ET
tree = ET.parse('blist.xml')
container = tree.find('blist')
def getkey(elem):
return elem.attrib['name']