Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
# -*- 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')