Skip to content

Instantly share code, notes, and snippets.

@KeitetsuWorks
Created October 25, 2018 14:39
Show Gist options
  • Select an option

  • Save KeitetsuWorks/da258f461d3e740f1b81fac8f52e666a to your computer and use it in GitHub Desktop.

Select an option

Save KeitetsuWorks/da258f461d3e740f1b81fac8f52e666a to your computer and use it in GitHub Desktop.
OpenCV Test Script
#!/usr/bin/env python
# -*- coding: utf-8 -*-
##
## @file opencv_test.py
## @brief OpenCV Test Script
## @author Keitetsu
## @date 2018/09/04
## @copyright Copyright (c) 2018 Keitetsu
## @par License
## This software is released under the MIT License.
##
import cv2
if __name__ == "__main__":
print("OpenCV %s" % (cv2.__version__))
img = cv2.imread("test.bmp", cv2.IMREAD_COLOR)
cv2.imshow("test", img)
cv2.waitKey(0)
cv2.destroyAllWindows()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment