Skip to content
Snippets Groups Projects
Commit f08e8357 authored by Daalen, Tim van's avatar Daalen, Tim van
Browse files

read_img moving update

parent 4bf58cc9
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,6 @@ class take_img(Thread):
if (self.GPS_check == False) or ((data_obj.lat >= 0) and (data_obj.lng >= 0)):
#send image to neural network
to_process_deque.append({'file_name': filename, 'img': img,'data': data_obj})
if self.save_IMGS == True:
self.usb.save_img(img, timestamp.strftime("%y_%m_%dT%H"), filename)
grabResult.Release()
......@@ -81,7 +80,7 @@ class read_img(Thread):
print("image read: " + image_file)
with GPS_lock:
timestamp = datetime.utcnow()
data_obj = GPS_ringbuf.get_dataobject(timestamp)
(data_obj, is_moving) = GPS_ringbuf.get_dataobject(timestamp)
#send image to neural network
to_process_queue.put({'file_name': base_filename, 'img': img,'data': data_obj})#blocks when the queue is full
......
......@@ -19,7 +19,7 @@ save-GPS: True
save-IMGS: True
save-every-x: 10 #dont save all imgs & GPS coordinates, its simply to much
min-movement-frame: 0.1 #m between frames
GPS-checks: False #enable/disable GPS moving checks to facilitate desk debugging
GPS-checks: True #enable/disable GPS moving checks to facilitate desk debugging
#AGENSO
AGENSO-batchsize: 20 #number of detections we send in one file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment