This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tail -c +17 foo.bin > tail-out.bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| """ | |
| code to determine language (actually codeblock(s)) of string | |
| https://www.unicode.org/charts/ official languages and blocks | |
| https://en.wikipedia.org/wiki/Unicode_block ranges tabulated more easily for purposes of the ranges below | |
| http://jrgraphix.net/research/unicode_blocks.php see the characters | |
| """ | |
| from collections import defaultdict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| virtualenv -p /usr/bin/python2 env_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip freeze | grep modulename |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from collections import defaultdict | |
| def lang_from_codeblock(string): | |
| """ | |
| INPUT: | |
| string: string to count | |
| OUTPUT: | |
| dict of counts in each block (see http://jrgraphix.net/research/unicode_blocks.php) | |
| """ | |
| lang_counts = defaultdict(int) | |
| ranges = {'Basic Latin':(u'\u0020' , u'\u007F'), \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "VGG_ILSVRC_16_layers" | |
| input: "data" | |
| input_dim: 10 | |
| input_dim: 3 | |
| input_dim: 224 | |
| input_dim: 224 | |
| layers { | |
| bottom: "data" | |
| top: "conv1_1" | |
| name: "conv1_1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "VGG_ILSVRC_16_layers_fc_reduced" | |
| input: "data" | |
| input_dim: 10 | |
| input_dim: 3 | |
| input_dim: 500 | |
| input_dim: 500 | |
| layers { | |
| bottom: "data" | |
| top: "conv1_1" | |
| name: "conv1_1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (c) 2012, Ryan Gomba | |
| # All rights reserved. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are met: | |
| # | |
| # 1. Redistributions of source code must retain the above copyright notice, this | |
| # list of conditions and the following disclaimer. | |
| # 2. Redistributions in binary form must reproduce the above copyright notice, | |
| # this list of conditions and the following disclaimer in the documentation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<string.h> | |
| #include<stdio.h> | |
| #include<stddef.h> | |
| #include<ueye.h> | |
| /******** | |
| This allows for changing cam and exposure. | |
| Also an attempt is made to use monochrome cam at 10bits - actual image is 24bpp. | |
| If you take the first (red) channel from this it appears ok, havent attempted to locate final 2 bits. | |
| *********/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| #include<stddef.h> | |
| #include<ueye.h> | |
| HIDS hCam = 1; | |
| void main() { | |
| printf("Success-Code: %d\n",IS_SUCCESS); | |
| //Kamera öffnen |