{"id":21274037,"url":"https://github.com/flexrobotics/roboflex_util_jpeg","last_synced_at":"2025-03-15T12:43:23.856Z","repository":{"id":201797010,"uuid":"707418615","full_name":"flexrobotics/roboflex_util_jpeg","owner":"flexrobotics","description":"Roboflex in-memory compression of rgb images to and from jpegs.","archived":false,"fork":false,"pushed_at":"2023-11-04T20:39:21.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T00:19:24.947Z","etag":null,"topics":["jpeg","roboflex"],"latest_commit_sha":null,"homepage":"https://github.com/flexrobotics/roboflex_util_jpeg","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexrobotics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-19T21:24:08.000Z","updated_at":"2023-10-27T00:36:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"5685e36a-552e-4829-8b69-57e59e4e1b13","html_url":"https://github.com/flexrobotics/roboflex_util_jpeg","commit_stats":null,"previous_names":["flexrobotics/roboflex_util_jpeg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_util_jpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_util_jpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_util_jpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_util_jpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexrobotics","download_url":"https://codeload.github.com/flexrobotics/roboflex_util_jpeg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732252,"owners_count":20338831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jpeg","roboflex"],"created_at":"2024-11-21T09:18:40.886Z","updated_at":"2025-03-15T12:43:23.820Z","avatar_url":"https://github.com/flexrobotics.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# roboflex.util.jpeg\n\nRoboflex support for jpeg compression to file and memory, and jpeg decompression from memory.\n\nUseful for compressing images over slow transports (wifi, etc).\n\n## System Dependencies\n\n    None! We build jpeg-compression from source...\n\n## pip install\n\n    pip install roboflex.util.jpeg\n\n## Import\n\n    import roboflex.util.jpeg as ruj\n\n## Nodes\n\nThere are two complementary nodes: `JPEGCompressor`, which can turn rgb tensors into jpegs in memory, and `JPEGDecompressor`, which does the opposite. Useful either for writing rgb tensors to files, or compressing them (NOTE jpeg is lossy).\n\n    # all parameters are optional\n    c = ruj.JPEGCompressor(\n\n        # in the incoming message, where to find the rgb tensor\n        image_key = \"rgb\",\n\n        # in the outgoing message, where to place the jpeg data\n        output_key = \"jpeg\", \n\n        # If this is provided, will ALSO write jpeg files with this \n        # prefix, with a variation of the date and time as the suffix.\n        filename_prefix = \"\",\n\n        # name of the node\n        name = \"JPEGCompressor\",\n\n        # prints internal info\n        debug = False,\n    )\n\n... and ...\n\n    c = ruj.JPEGDecompressor(\n\n        # in the incoming message, where to find the jpeg data as a blob\n        input_key = \"jpeg\",\n\n        # in the outgoing message, where to place the rgb data as a tensor\n        output_key = \"rgb\", \n\n        # name of the node\n        name = \"JPEGDecompressor\",\n\n        # prints internal info\n        debug = False,\n    )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexrobotics%2Froboflex_util_jpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexrobotics%2Froboflex_util_jpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexrobotics%2Froboflex_util_jpeg/lists"}