Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inference
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
optima
inference
Commits
f08e8357
Commit
f08e8357
authored
4 years ago
by
Daalen, Tim van
Browse files
Options
Downloads
Patches
Plain Diff
read_img moving update
parent
4bf58cc9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
camera.py
+1
-2
1 addition, 2 deletions
camera.py
cfg/detection.yaml
+1
-1
1 addition, 1 deletion
cfg/detection.yaml
with
2 additions
and
3 deletions
camera.py
+
1
−
2
View file @
f08e8357
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
cfg/detection.yaml
+
1
−
1
View file @
f08e8357
...
...
@@ -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
:
Fals
e
#enable/disable GPS moving checks to facilitate desk debugging
GPS-checks
:
Tru
e
#enable/disable GPS moving checks to facilitate desk debugging
#AGENSO
AGENSO-batchsize
:
20
#number of detections we send in one file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment