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 <opencv/cv.h> | |
| #include <opencv/highgui.h> | |
| #include <opencv/ml.h> | |
| void doMosaic(IplImage* in, int x, int y, | |
| int width, int height, int size); | |
| int main (int argc, char **argv) | |
| { | |
| int i, c; |
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
| install_opencv: | |
| sudo dnf install --best --allowerasing \ | |
| cmake python-devel numpy gcc gcc-c++ \ | |
| python3-devel python3-numpy \ | |
| gtk2-devel libdc1394-devel libv4l-devel ffmpeg-devel \ | |
| gstreamer-plugins-base-devel libpng-devel libjpeg-turbo-devel \ | |
| jasper-devel openexr-devel libtiff-devel libwebp-devel \ | |
| tbb-devel eigen3-devel python-sphinx texlive git | |
| if [ ! -d opencv/ ]; then \ |
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
| crypto = require('crypto'); | |
| #Quick MD5 of text | |
| text = "MD5 this text!" | |
| md5hash1 = crypto.createHash('md5').update(text).digest("hex") | |
| #MD5 of text with updates | |
| m = crypto.createHash('md5') | |
| m.update("MD5 ") | |
| m.update("this ") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| """ Unsupervised evaluation metrics. """ | |
| # License: BSD Style. | |
| from itertools import combinations | |
| import numpy as np | |
| from sklearn.utils import check_random_state | |
| from sklearn.metrics.pairwise import distance_metrics | |
| from sklearn.metrics.pairwise import pairwise_distances |
NewerOlder