-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optical flow camera #3938
Optical flow camera #3938
Conversation
@saihv What is the difference between OpticalFlow and OpticalFlowVis? |
OpticalFlow is a 2-channel image where the channels correspond to vx and vy respectively (camera optical flow velocity). This is the data that is the actual raw optical flow. Corresponding material: HUDAssets/OpticalFlowMaterial. |
recreate OpticalFlowCaptureComponent & OpticalFlowVisCaptureComponent to create version of BP_PIPCamera merged with master
Tested locally and it works for me; thanks for the contribution @saihv! |
Hi @saihv, |
This adds an extra section to the image type documentation about the new image types added in #3938
Hi,
Mind letting me know what I did wrong? Thanks a lot ! |
It's not about storing. Response itself seem to have only 1 channel. This feature is broken. |
Still encounter this problem in 2024. Did you solve it later @KaiXin-Chen ? |
About
Adds an optical flow camera that computes pixel velocity through a material/HLSL code. Inspired by carla-simulator/carla#4104, and the discussion at https://github.com/EpicGames/UnrealEngine/pull/6933 (thanks to @finger563 for the discussion and useful code!)
This PR does not make use of UE's native velocity buffer due to issues in its calculation of motion vectors (see https://github.com/EpicGames/UnrealEngine/pull/6933), and hence, can only compute optical flow based on camera motion and not dynamic objects. This is meant as an intermediate step while UE fixes the issues with velocity buffer (more discussion at https://github.com/florian-world/VelocityUE4).
The flow data is exposed in two ways, through two new 'cameras':
How Has This Been Tested?
The two new cameras can be targeted through their ids 8 and 9; and can be visualized either through subwindows or through the normal Python image request API.
Pending accuracy tests of per-pixel flow.
Screenshots (if appropriate):
opticalflow.mp4