def test1():
    """Dummy-testing the movement analyzer
    """
    analyzer = MovementDetector(verbose=True, debug=True)

    img = numpy.zeros((1080 // 4, 1920 // 4, 3))
    result = analyzer(img)
    print("\nresult =", result, "\n")

    img = numpy.zeros((1080 // 4, 1920 // 4, 3))
    result = analyzer(img)
    print("\nresult =", result, "\n")

    img = numpy.ones((1080 // 4, 1920 // 4, 3)) * 100
    result = analyzer(img)
    print("\nresult =", result, "\n")
def test1 ( ) : analyzer = MovementDetector ( verbose = True , debug = True ) img = numpy . zeros ( ( 1080 // 4 , 1920 // 4 , 3 ) ) result = analyzer ( img ) print ( "\nresult =" , result , "\n" ) img = numpy . zeros ( ( 1080 // 4 , 1920 // 4 , 3 ) ) result = analyzer ( img ) print ( "\nresult =" , result , "\n" ) img = numpy . ones ( ( 1080 // 4 , 1920 // 4 , 3 ) ) * 100 result = analyzer ( img ) print ( "\nresult =" , result , "\n" )
Dummy-testing the movement analyzer