zed-python-api icon indicating copy to clipboard operation
zed-python-api copied to clipboard

Python API for the ZED SDK

Results 25 zed-python-api issues
Sort by recently updated
recently updated
newest added

The camera frequency is set, but the time stamp when capturing the picture is incorrect

[{"_id":"6356e99acecf4e081a1e8d43","body":"This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days","issue_id":1660751357635,"origin_id":1144310231,"user_origin_id":41898282,"create_time":1654131890,"update_time":1654131890,"id":1666640282898,"updated_at":"2022-10-24T19:38:02.898000Z","created_at":"2022-10-24T19:38:02.898000Z"},{"_id":"6356e99acecf4e081a1e8d44","body":"I'm trying to sync multiple SVO files a remove excess frames from start and end, to have same length synced recordings from multiple ZED cameras. and this issue is stopping me from doing that.","issue_id":1660751357635,"origin_id":1148530078,"user_origin_id":9774613,"create_time":1654600643,"update_time":1654600651,"id":1666640282902,"updated_at":"2022-10-24T19:38:02.902000Z","created_at":"2022-10-24T19:38:02.902000Z"},{"_id":"6356e99acecf4e081a1e8d45","body":"This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days","issue_id":1660751357635,"origin_id":1178422509,"user_origin_id":41898282,"create_time":1657242325,"update_time":1657242325,"id":1666640282905,"updated_at":"2022-10-24T19:38:02.905000Z","created_at":"2022-10-24T19:38:02.905000Z"},{"_id":"6356e99acecf4e081a1e8d46","body":"Exists still.","issue_id":1660751357635,"origin_id":1185878313,"user_origin_id":9774613,"create_time":1657916014,"update_time":1657916014,"id":1666640282908,"updated_at":"2022-10-24T19:38:02.907000Z","created_at":"2022-10-24T19:38:02.907000Z"},{"_id":"6356e99acecf4e081a1e8d47","body":"This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days","issue_id":1660751357635,"origin_id":1214500821,"user_origin_id":41898282,"create_time":1660525520,"update_time":1660525520,"id":1666640282911,"updated_at":"2022-10-24T19:38:02.911000Z","created_at":"2022-10-24T19:38:02.911000Z"}] comment

### Preliminary Checks - [X] This issue is not a duplicate. Before opening a new issue, please search existing issues. - [X] This issue is not a question, feature request,...

bug
Stale

Could I share my CUDA context with a PyZEDCamera?

[{"_id":"6356ef358041c95dfb140d8b","body":"Hi,\r\nYes, it's a missing feature, you currently can't (without modifying the plugin). \r\nIt is planned though. It will probably require PyCUDA.","issue_id":1660751357640,"origin_id":379685880,"user_origin_id":12609780,"create_time":1523264920,"update_time":1523264920,"id":1666641717952,"updated_at":"2022-10-24T20:01:57.951000Z","created_at":"2022-10-24T20:01:57.951000Z"},{"_id":"6356ef358041c95dfb140d8c","body":"Hi,\r\nthank you for clarification. For now, I will try to modify the plugin to run it with PyCUDA.","issue_id":1660751357640,"origin_id":379931858,"user_origin_id":13760242,"create_time":1523318952,"update_time":1523318952,"id":1666641717955,"updated_at":"2022-10-24T20:01:57.954000Z","created_at":"2022-10-24T20:01:57.954000Z"},{"_id":"6356ef358041c95dfb140d8d","body":"Hi,\r\nI've noticed that I can use CUDA context switching (push & pop) to run my CUDA programs with PyZED rather than trying to share the contexts, which is sufficient for my purpose.\r\nYet it'd be convenient if context sharing will be implemented on PyZED in future :)","issue_id":1660751357640,"origin_id":393741348,"user_origin_id":13760242,"create_time":1527820832,"update_time":1527820832,"id":1666641717959,"updated_at":"2022-10-24T20:01:57.958000Z","created_at":"2022-10-24T20:01:57.958000Z"},{"_id":"6356ef358041c95dfb140d8e","body":"@oha08 I'm new to this and trying to figure out how to do the same (I need to run a DNN and query the ZED In the same process). Any code you can share? How exactly does one switch cuda contexts? Thanks!\r\n","issue_id":1660751357640,"origin_id":401574699,"user_origin_id":1084514,"create_time":1530404262,"update_time":1530404262,"id":1666641717966,"updated_at":"2022-10-24T20:01:57.966000Z","created_at":"2022-10-24T20:01:57.966000Z"},{"_id":"6356ef358041c95dfb140d8f","body":"I made a tiny cython module to do this and it works! Thanks for the tip guys! \r\n\r\nhttps:\/\/github.com\/frk2\/cuda-fun\r\n","issue_id":1660751357640,"origin_id":401622830,"user_origin_id":1084514,"create_time":1530468288,"update_time":1530468288,"id":1666641717971,"updated_at":"2022-10-24T20:01:57.970000Z","created_at":"2022-10-24T20:01:57.970000Z"},{"_id":"6356ef358041c95dfb140d90","body":"@frk2 Hi, Your module looks pretty nice and simple enough for working! In my case, I'm using PyCUDA to create and push\/pop my context. Because PyCUDA doesn't provide any interface to get the current context, I've selected to keep the context made by ZED stacked and push my context on top of it:\r\n\r\n1) open ZED Camera where a context is created\r\n2) create my context, which is automatically stacked on top of the previous context\r\n3) pop my context when calling ZED functions\r\n4) push my context when calling my CUDA kernels (if it is popped before)\r\nand so on\r\n\r\nYour module enables more flexible control than this :) Thanks a lot!","issue_id":1660751357640,"origin_id":401652830,"user_origin_id":13760242,"create_time":1530497277,"update_time":1530497277,"id":1666641717973,"updated_at":"2022-10-24T20:01:57.973000Z","created_at":"2022-10-24T20:01:57.973000Z"},{"_id":"6356ef358041c95dfb140d91","body":"I was thinking of doing the same - but the bummer is that you can't pass a created context to either ZED or Pytorch (they both create one) and hence pycuda was useless since it doesn't let me get the current context.\r\n\r\nThanks for the tip though definitely guided me in the right direction!\r\n","issue_id":1660751357640,"origin_id":401657829,"user_origin_id":1084514,"create_time":1530500040,"update_time":1530500040,"id":1666641717975,"updated_at":"2022-10-24T20:01:57.975000Z","created_at":"2022-10-24T20:01:57.975000Z"},{"_id":"6356ef358041c95dfb140d92","body":"@frk2 By default the ZED SDK creates a new context, but with the C++ SDK you can pass your own context to the ZED with [InitParameters::sdk_cuda_ctx](https:\/\/www.stereolabs.com\/developers\/documentation\/API\/v2.4.0\/structsl_1_1InitParameters.html#ae684a455a5dc2e48a82b9aadc8c3ba53).\r\nAs mentioned in the original post, this feature is missing from the python wrapper though.","issue_id":1660751357640,"origin_id":402407095,"user_origin_id":12609780,"create_time":1530693446,"update_time":1530693446,"id":1666641717979,"updated_at":"2022-10-24T20:01:57.978000Z","created_at":"2022-10-24T20:01:57.978000Z"},{"_id":"6356ef358041c95dfb140d93","body":"@adujardin yup totally am aware - since im trying to use pytorch in the same process the simplest approach was to juggle contexts using pop and push from within python. Temporary approach till you guys add context passing through pycuda or similar. Thanks!\r\n","issue_id":1660751357640,"origin_id":402554159,"user_origin_id":1084514,"create_time":1530735864,"update_time":1530735864,"id":1666641717981,"updated_at":"2022-10-24T20:01:57.981000Z","created_at":"2022-10-24T20:01:57.981000Z"},{"_id":"6356ef358041c95dfb140d94","body":"Any update whether context sharing is possible with ZED camera and the python API? I'm trying to work with the ZED camera an CuPy an have probably encountered an issue related to this. ","issue_id":1660751357640,"origin_id":932916503,"user_origin_id":31274447,"create_time":1633257972,"update_time":1633257972,"id":1666641717985,"updated_at":"2022-10-24T20:01:57.985000Z","created_at":"2022-10-24T20:01:57.985000Z"},{"_id":"6356ef358041c95dfb140d95","body":"Just to update on my solution for this issue. The ZED runs its own context internally and therefore processing images using CuPy should be handled in a different thread. My best solution relied on the ZED-TensorFlow example which worked pretty good. ","issue_id":1660751357640,"origin_id":933481879,"user_origin_id":31274447,"create_time":1633353790,"update_time":1633353790,"id":1666641717989,"updated_at":"2022-10-24T20:01:57.988000Z","created_at":"2022-10-24T20:01:57.988000Z"},{"_id":"6655abc22cfd0d66a8184040","body":"\u4f60\u597d\u3002\u6211\u7528\u7684\u662fzed\u76f8\u673a\uff0ccuda\u662f11.7\uff0c \u8fd0\u884cget_python_api.py\u6587\u4ef6\u65f6\uff0c\u63d0\u793aPermissionError: [Errno 13] Permission denied: 'C:\\\\Program Files (x86)\\\\ZED SDK\\\\pyzed-3.8-cp39-cp39-win_amd64.whl'\uff0c\u4f46\u662f\u5b89\u88c5whl\u6587\u4ef6\u4e4b\u540e\uff0c\u7ee7\u7eed\u91cd\u590d\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\uff0c\u662f\u4ec0\u4e48\u539f\u56e0\u5bfc\u81f4\u7684\u5462","issue_id":1660751357640,"origin_id":1464796757,"user_origin_id":100847807,"create_time":1678501487,"update_time":1678501487,"id":1716890562531,"updated_at":"2024-05-28T10:02:42.531000Z","created_at":"2024-05-28T10:02:42.531000Z"},{"_id":"6655abc22cfd0d66a8184041","body":"Hello. I use a zed camera, and the cuda is 11.7. When I run the get_python_api.py file, I am prompted with permission error: [errno13] Permission denied:' C: \\ \\ Program files (x86) \\ \\ ZED SDK \\ \\ PYZED-3.8-CP39-CP39-Win-amd64.whl', but after installing the whl file, what causes this error to appear repeatedly?","issue_id":1660751357640,"origin_id":1464797853,"user_origin_id":100847807,"create_time":1678501754,"update_time":1678501754,"id":1716890562545,"updated_at":"2024-05-28T10:02:42.545000Z","created_at":"2024-05-28T10:02:42.545000Z"}] comment

Though the ZED SDK provides a way to share my CUDA context with a ZED camera, it seems that the current version of its python wrapper lacks it: - InitParameters::sdk_cuda_ctx...

feature_request

### Preliminary Checks - [X] This issue is not a duplicate. Before opening a new issue, please search existing issues. - [X] This issue is not a question, feature request,...

bug

get_python_api.py is unable to find pyzed installation folder

[{"_id":"636beb8f1e434437e73bc12f","body":"Hi,\r\n\r\nThank you for the detailed report! You're right the current way was too brittle. We'll integrate your fix for the next release","issue_id":1666044582952,"origin_id":1247956786,"user_origin_id":12609780,"create_time":1663240431,"update_time":1663240431,"id":1668017039457,"updated_at":"2022-11-09T18:03:59.457000Z","created_at":"2022-11-09T18:03:59.457000Z"},{"_id":"636beb8f1e434437e73bc130","body":"This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days","issue_id":1666044582952,"origin_id":1286332629,"user_origin_id":41898282,"create_time":1666314700,"update_time":1666314700,"id":1668017039460,"updated_at":"2022-11-09T18:03:59.460000Z","created_at":"2022-11-09T18:03:59.460000Z"}] comment

### Preliminary Checks - [X] This issue is not a duplicate. Before opening a new issue, please search existing issues. - [X] This issue is not a question, feature request,...

bug

### Preliminary Checks - [X] This issue is not a duplicate. Before opening a new issue, please search existing issues. - [X] This issue is not a question, feature request,...

bug

## Keep the `retrieved` data on GPU ### Description Through the utilization of [cupy.ndarrays](https://docs.cupy.dev/en/stable/reference/ndarray.html) (extra dependency), we were able to keep the retrieved data on GPU and provide a view...

### Preliminary Checks - [X] This issue is not a duplicate. Before opening a new issue, please search existing issues. - [X] This issue is not a question, feature request,...

bug

### Preliminary Checks - [X] This issue is not a duplicate. Before opening a new issue, please search existing issues. - [X] This issue is not a question, feature request,...

bug

### Preliminary Checks - [X] This issue is not a duplicate. Before opening a new issue, please search existing issues. - [X] This issue is not a question, feature request,...

bug

### Preliminary Checks - [X] This issue is not a duplicate. Before opening a new issue, please search existing issues. - [X] This issue is not a question, bug report,...