def _calculate_geometry(self):
        slot_centers = [bc.center() for bc in self._barcodes]
        if self.plate_type == Geometry.UNIPUCK:
            use_emptys = len(self._barcodes) < 8
            if use_emptys:
                empty_circles = EmptySlotDetector.detect(self._frame_img, self._barcodes)
                empty_centers = [c.center() for c in empty_circles]
                slot_centers.extend(empty_centers)

        geometry = Geometry.calculate_geometry(self.plate_type, slot_centers)
        return geometry
Пример #2
0
 def _create_geometry(self, barcodes):
     """ Create the blank geometry object which just stores the locations of all the barcodes. """
     geometry = Geometry.calculate_geometry(self.plate_type, barcodes)
     return geometry
Пример #3
0
 def _create_geometry(self, barcodes):
     """ Create the blank geometry object which just stores the locations of all the barcodes. """
     geometry = Geometry.calculate_geometry(self.plate_type, barcodes)
     return geometry