-
Notifications
You must be signed in to change notification settings - Fork 74
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
High latency due to python implementation #26
Comments
Thanks for doing this investigation—performance has been one of the many reasons this driver hasn't received the love it needs from us. If gscam works well for the video portion, then this can evolve into just a stub for managing the PTZ, and the rest of it can be put out of its misery. |
Hi, Tried the gstreamer-based axis acquisition on the kingfisher today. Next, I'll try the neonhttpsrc and we'll see if this gets a bit better. Regards On Wed, Nov 27, 2013 at 1:25 AM, Mike Purvis [email protected]:
Cedric Pradalier |
Hi, Tested today on the boat with neonhttpsrc (had to compile it from source in The configuration file is available on HTH On Mon, Dec 2, 2013 at 11:24 PM, Cedric Pradalier <
Cedric Pradalier |
Hi Mike, Further tests with optimizing the Axis performances. Now that we have The imdecode function of opencv does support grayscale decoding directly On my laptop this save 60% cpu for the decoding. I'll try to check tomorrow Just for information... On Tue, Dec 3, 2013 at 5:52 PM, Cedric Pradalier <[email protected]
Cedric Pradalier |
Hi Mike, Just for the record, I've modified the command message (and handling) in my We've tested the gray-level republish on the boat today and it cuts the I hope that helps. On Sun, Dec 8, 2013 at 11:22 PM, Cedric Pradalier <
Cedric Pradalier |
Looks like the next step here is to just implement a minimal axis-specific C++ framegrabber which is able to be used as both a node and nodelet. I think the ideal would be if axis_camera's driver could advertise separate topics for raw, compressed, and greyscale, and (like other drivers) only produce them when a subscription exists:
|
Just for information, because python is sometimes introducing huge delay (like 4-5 seconds!), I was investigating another option to get the camera video stream.
Using gstreamer and gscam seems to work but uses a lot of CPU if it does the decoding itself. The patch below to gscam allows publishing the jpeg stream, same as the axis_driver.
ros-drivers/gscam#11
This looks like a good alternative on the kingfisher, although I haven't found yet how to tell gstreamer to use additional parameter in the get request (like resolution, fps, image size).
The text was updated successfully, but these errors were encountered: