Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
Drone ROS Packages
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Larkin Heintzman
Drone ROS Packages
Commits
b3284db9
Commit
b3284db9
authored
3 years ago
by
Larkin Heintzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typos fixed
parent
d74296e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
imageNode.py
Onboard-SDK-ROS/scripts/imageNode.py
+4
-4
No files found.
Onboard-SDK-ROS/scripts/imageNode.py
View file @
b3284db9
...
...
@@ -38,14 +38,14 @@ def main():
if
iv
.
image
is
not
None
:
# cv2.imshow("image window", iv.image)
if
np
.
mod
(
iv
.
seq
,
32
)
==
0
:
if
os
.
path
.
isdir
(
folderName
):
# print ("File exist")
directory
=
"/home/"
+
getpass
.
getuser
()
+
"/"
+
folderName
if
os
.
path
.
isdir
(
directory
):
if
windowFlag
:
cv2
.
imshow
(
"image window"
,
iv
.
image
)
rospy
.
loginfo
(
"publishing image to window seq: "
+
iv
.
seq
)
if
saveFlag
:
cv2
.
imwrite
(
"/home/"
+
getpass
.
getuser
()
+
"/"
folderName
+
"/camera_image_{seq}.jpeg"
.
format
(
seq
=
iv
.
seq
),
iv
.
image
)
rospy
.
loginfo
(
"saving image to folder:
home-> "
+
folderName
+
"-> camera_image_{seq}.jpeg"
.
format
(
seq
=
iv
.
seq
)
+
" seq: "
+
str
(
iv
.
seq
))
cv2
.
imwrite
(
directory
+
"/camera_image_{seq}.jpeg"
.
format
(
seq
=
iv
.
seq
),
iv
.
image
)
rospy
.
loginfo
(
"saving image to folder:
"
+
directory
+
"-> camera_image_{seq}.jpeg"
.
format
(
seq
=
iv
.
seq
)
+
" seq: "
+
str
(
iv
.
seq
))
cv2
.
waitKey
(
10
)
else
:
rospy
.
loginfo
(
"camera dir missing!"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment