Skip to content

Instantly share code, notes, and snippets.

@samos123
Created May 30, 2015 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samos123/d383c26f6d47d34d32d6 to your computer and use it in GitHub Desktop.
Save samos123/d383c26f6d47d34d32d6 to your computer and use it in GitHub Desktop.
tests.py for feature_extraction on spark
import unittest
import feature_extraction
class FeatureExtractionTest(unittest.TestCase):
def test_extract_opencv_sift(self):
imgbytes = bytearray(open("img.jpg", "rb").read())
result = feature_extraction.extract_sift_features_opencv(("testfilename.jpg", imgbytes))
print result
if __name__ == "__main__":
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment