Beispiel #1
0
    def test_convenience_funcs(self):
        trackpy.quiet(True)
        self.assertEqual(trackpy.logger.level, logging.WARN)
        trackpy.quiet(False)
        self.assertEqual(trackpy.logger.level, logging.INFO)

        trackpy.ignore_logging()
        self.assertEqual(len(trackpy.logger.handlers), 0)
        self.assertEqual(trackpy.logger.level, logging.NOTSET)
        self.assertTrue(trackpy.logger.propagate)

        trackpy.handle_logging()
        self.assertEqual(len(trackpy.logger.handlers), 1)
        self.assertEqual(trackpy.logger.level, logging.INFO)
        self.assertEqual(trackpy.logger.propagate, 1)
Beispiel #2
0
    def test_convenience_funcs(self):
        trackpy.quiet(True)
        self.assertEqual(trackpy.logger.level, logging.WARN)
        trackpy.quiet(False)
        self.assertEqual(trackpy.logger.level, logging.INFO)

        trackpy.ignore_logging()
        self.assertEqual(len(trackpy.logger.handlers), 0)
        self.assertEqual(trackpy.logger.level, logging.NOTSET)
        self.assertTrue(trackpy.logger.propagate)

        trackpy.handle_logging()
        self.assertEqual(len(trackpy.logger.handlers), 1)
        self.assertEqual(trackpy.logger.level, logging.INFO)
        self.assertEqual(trackpy.logger.propagate, 1)
Beispiel #3
0
base_path
    |--Film1
    |   |--1
    |   |   |--images
    |   |--2
    |   |   |--images
    |   |--3
    |--Film2
    |   |--1
'''

import numpy as np
import pandas as pd
import pims
import trackpy as tp
tp.ignore_logging()
from skimage import data, color
from skimage.filters import threshold_local
import skimage
# warning.catch_warnings
import glob
import os
import sys
import cv2 as cv
from tkinter import filedialog, Tk
from joblib import Parallel, delayed

#User options#
THRESH = 134
crop = [0, 00]  #Distance from left and right to crop out