Skip to content

Instantly share code, notes, and snippets.

View sherab's full-sized avatar

Tim Lewis sherab

View GitHub Profile
#!/usr/bin/env python
'''Crop an image to just the portions containing text.
Usage:
./crop_morphology.py path/to/image.jpg
This will place the cropped image in path/to/image.crop.png.
For details on the methodology, see
@sherab
sherab / Streaming from Sony PXW X70.md
Last active August 29, 2015 14:27 — forked from pgassmann/Streaming from Sony PXW X70.md
Streaming from Sony PXW X70 with ffmpeg. Display, save and forward stream to Youtube

Streaming from Sony PXW-X70

Streaming from Sony PXW X70 with ffmpeg. Display, save and forward stream to Youtube

Camera Settings

requires Firmware 2.0

  • Configure your camera to connect to the same network as your Computer
-(float)compareString:(NSString *)originalString withString:(NSString *)comparisonString
{
// Normalize strings
[originalString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
[comparisonString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
originalString = [originalString lowercaseString];
comparisonString = [comparisonString lowercaseString];
// Step 1 (Steps follow description at http://www.merriampark.com/ld.htm)