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 shapely.geometry import Polygon, MultiPolygon | |
| from shapely.ops import polygonize | |
| import numpy as np | |
| from skimage import draw, io | |
| img = np.zeros(shape=(600, 600, 3), dtype=np.uint8) | |
| coords = np.array([[20, 20], [20, 400], [400, 20], [400, 400]], dtype=np.int32) | |
| p = Polygon(coords) |
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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| source ~/.bashrc_work > /dev/null 2>&1 | |
| # check the window size after each command and, if necessary, | |
| # update the values of LINES and COLUMNS. | |
| shopt -s checkwinsize |
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 <string.h> | |
| #define MAX_DATA_LEN 1024 | |
| static unsigned char hex_string[MAX_DATA_LEN]; | |
| static inline char convert_to_printable(char c) | |
| { | |
| return c < 32 || c > 126 ? '.' : c; |
NewerOlder