Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Demo_Inspection_Pipeline/testScript.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (18 sloc)
658 Bytes
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Aug 20 14:31:51 2020 | |
@author: Christian | |
""" | |
# Note python package dependencies: | |
# opencv-python, matplotlib, numpy, tensorflow, keras | |
# Import inspectSection function | |
from inspectSection import inspectSection | |
# Load a test image (this should come directly from the camera) | |
import cv2 | |
img = cv2.imread("C:/Users/Christian/University of Connecticut/UConn DSCLab - General/Projects/ARM Inspection Stator Vanes/Image Data/001_Data_7_24_2020/Part Images/IMG_0233.JPG") | |
# Evaluate image, assuming position is pose 2 | |
part_OK = inspectSection(img, 2) | |
if(part_OK): | |
print('Part OK') | |
else: | |
print('Part Not OK') | |