980 underwater vision enhancement #1033
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I created the enhance_vision.py node that utilizes a machine learning model to take image data from the bottom camera (/camera/down/image_rect_color) and enhances it utilizing parameters from this research paper: https://github.com/xueleichen/PyTorch-Underwater-Image-Enhancement
Screenshot or Video
Related Issues
Currently the neural network is programmed to run on the CPU which decreases performance. We will need to change the line that defines which device to run the neural network in the future.
- Closes #XXX
Testing
It is best tested when you have a bag file. run these commands:
$ roslaunch subjugator_launch gazebo.launch
on a seperate terminal window:
$ subviz
then:
$ cd catkin_ws/src/mil/Subjugator/perception/subjugator_perception/nodes
$ python3 enhance_vision.py
After that, in the subviz window, open an image and tap into the topic:
/enhance_vision/enhance_cam_topic
*If you have a bag file running, and you also are viewing the topic: /camera/down/image_rect_color, you should see that the enhance vision topic updating with a delay but with a processed version of the original image.
About This PR