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
| package ignite | |
| import ( | |
| "net" | |
| api "github.com/weaveworks/ignite/pkg/apis/ignite" | |
| "github.com/weaveworks/ignite/pkg/apis/ignite/validation" | |
| meta "github.com/weaveworks/ignite/pkg/apis/meta/v1alpha1" | |
| "github.com/weaveworks/ignite/pkg/config" | |
| "github.com/weaveworks/ignite/pkg/dmlegacy" |
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
| [] + {} | |
| // [object Object] |
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
| const obj: string; | |
| obj = 'hey'; | |
| // Error: Type 'number' is not assignable to type 'string'. | |
| obj = 3; |
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
| import numpy as np | |
| import cv2 | |
| from matplotlib import pyplot as plt | |
| img1 = cv2.imread('hero.png',0) # queryImage | |
| img2 = cv2.imread('heroes.png',0) # trainImage | |
| # Initiate SIFT detector | |
| sift = cv2.xfeatures2d.SIFT_create() |
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
| import cv2, sys | |
| import numpy as np | |
| from itertools import izip | |
| from pymongo import MongoClient | |
| client = MongoClient('mongodb://mongo.local:27017') | |
| db = client.heroes | |
| collection = db.sift_descriptors | |
| img = cv2.imread('hero.png') |