Created
May 30, 2015 13:20
-
-
Save samos123/d383c26f6d47d34d32d6 to your computer and use it in GitHub Desktop.
tests.py for feature_extraction on spark
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 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