def image_crop(arFrame, nHeightTarget, nWidthTarget):
    """
    Crop each frame in array to specified size.
    :param arFrames: Array of frames.
    :param nHeightTarget: Target Height.
    :param nWidthTarget: Target Width.
    :return: Array of cropped frames.
    """
    nHeight, nWidth, nDepth = arFrame.shape

    sX = int(nWidth / 2 - nWidthTarget / 2)
    sY = int(nHeight / 2 - nHeightTarget / 2)

    arFrames = arFrame[sY:sY + nHeightTarget, sX:sX + nWidthTarget, :]

    return arFrames