object 'line' is not a tuple or list ... while using get_histogram()?

I get an error that points to something that doesn’t make sense …

import sensor, image, pyb, time, os

sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QQVGA)
sensor.skip_frames(time = 2000)
clock = time.clock()

#***************************************************************************************************
# Recorded Image
#***************************************************************************************************
snapshot_source = False # Set to true once finished to pull data from sensor.
img_reader = None if snapshot_source else image.ImageReader("/filename.bin")
#***************************************************************************************************

r = (67,22,40,25) #ROI of image

while(True):
    clock.tick()
    img = sensor.snapshot() if snapshot_source else img_reader.next_frame(copy_to_fb=True, loop=True)
    # histogram of ROI
    hist = img.get_histogram(roi = r)



Traceback (most recent call last):
  File "<stdin>", line 37, in <module>
TypeError: object 'line' is not a tuple or list
MicroPython d23b594 on 2017-07-05; OPENMV3 with STM32F765
Type "help()" for more information.

The error points to the line “hist = img.get_histogram(roi = r)” ?
And ideas?

This exact code works in another script … but on this script it does not …

Where’s the line object?

Where’s the line object

Exactly!
There wasn’t one …