dusty-nv / jetson-utils

C++/CUDA/Python multimedia utilities for NVIDIA Jetson
MIT License
710 stars 284 forks source link

gstCamera capture RGBA8 images #61

Open ghost opened 3 years ago

ghost commented 3 years ago

If I would like to use the gstCamera to capture RGBA8 images, how should I call the function Capture?

dusty-nv commented 3 years ago

Are you using C++ or Python? You should use videoSource interface instead, and then either pass a uchar4* pointer to Capture() if using C++, or if using Python there is an optional argument format='rgba8'


From: deeprun @.> Sent: Sunday, March 28, 2021 1:04:00 AM To: dusty-nv/jetson-utils @.> Cc: Subscribed @.***> Subject: [dusty-nv/jetson-utils] gstCamera capture RGBA8 images (#61)

If I would like to use the gstCamera to capture RGBA8 images, how should I call the function Capture?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdusty-nv%2Fjetson-utils%2Fissues%2F61&data=04%7C01%7Cdustinf%40nvidia.com%7C00e3302fd17d4103305208d8f1a6e6c2%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637525046440222403%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MDc08Mg6xbOeIFu3Qi7BkLANOGgQ7KayhuRc4O0kV4E%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADVEGKYOXT4RPFHSHVA27WLTF22EBANCNFSM4Z5U2FTA&data=04%7C01%7Cdustinf%40nvidia.com%7C00e3302fd17d4103305208d8f1a6e6c2%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637525046440232398%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NAVQJPvFqips2WZ9ERI0jDXiFAqDGPiX113buaUUx5w%3D&reserved=0.

ghost commented 3 years ago

Any code example to using VideoSource to capture live stream for deep learning processing? I am using gstCamera because I use CameraViewer as an example.

dusty-nv commented 3 years ago

Hi, look at jetson-inference and the imagenet/detectnet/segnet examples.


From: deeprun @.> Sent: Sunday, March 28, 2021 5:24:42 PM To: dusty-nv/jetson-utils @.> Cc: Dustin Franklin @.>; Comment @.> Subject: Re: [dusty-nv/jetson-utils] gstCamera capture RGBA8 images (#61)

Any code example to using VideoSource to capture live stream for deep learning processing? I am using gstCamera because I use CameraViewer as an example.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdusty-nv%2Fjetson-utils%2Fissues%2F61%23issuecomment-808961717&data=04%7C01%7Cdustinf%40nvidia.com%7C7ac5bc7e06db4644c3e508d8f22fe71e%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637525634852511941%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2BQTAYFulnqjRsgd0PZrv2QM5Ho1FrWrX%2Bskan8%2BtOIU%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADVEGK7XQMQHNLGYDISUOTTTF6NBVANCNFSM4Z5U2FTA&data=04%7C01%7Cdustinf%40nvidia.com%7C7ac5bc7e06db4644c3e508d8f22fe71e%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637525634852511941%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8cy00BljLnma9OZtWvez38gtbV0XMCKVet4faVTf1ZI%3D&reserved=0.