Package org.openpnp.model

Examples of org.openpnp.model.Rectangle


    // the VisionProvider
    Thread.sleep(500);
   
    VisionProvider visionProvider = camera.getVisionProvider();
   
    Rectangle aoi = vision.getAreaOfInterest();
   
    // Perform the template match
    logger.debug("Perform template match.");
    Point[] matchingPoints = visionProvider.locateTemplateMatches(
        aoi.getX(),
        aoi.getY(),
        aoi.getWidth(),
        aoi.getHeight(),
        0,
        0,
        vision.getTemplateImage());
   
    // Get the best match from the array
View Full Code Here


    @Override
    public Circle[] locateCircles(int roiX, int roiY, int roiWidth,
            int roiHeight, int coiX, int coiY, int minimumDiameter,
            int diameter, int maximumDiameter) throws Exception {

        Rectangle roi = new Rectangle(roiX, roiY, roiWidth, roiHeight);
        return locateCircles(roi, minimumDiameter, maximumDiameter);
    }
View Full Code Here

    // the VisionProvider
    Thread.sleep(200);
   
    VisionProvider visionProvider = camera.getVisionProvider();
   
    Rectangle aoi = getVision().getAreaOfInterest();
   
    // Perform the template match
    logger.debug("Perform template match.");
    Point[] matchingPoints = visionProvider.locateTemplateMatches(
        aoi.getX(),
        aoi.getY(),
        aoi.getWidth(),
        aoi.getHeight(),
        0,
        0,
        vision.getTemplateImage());
   
    // Get the best match from the array
View Full Code Here

TOP

Related Classes of org.openpnp.model.Rectangle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.