{"id":23761876,"url":"https://github.com/strawlab/dlt","last_synced_at":"2025-09-05T06:31:40.604Z","repository":{"id":40558377,"uuid":"248771426","full_name":"strawlab/dlt","owner":"strawlab","description":"DLT (direct linear transform) algorithm for camera calibration","archived":false,"fork":false,"pushed_at":"2025-08-01T05:38:07.000Z","size":58,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T06:33:09.486Z","etag":null,"topics":["camera-models","computer-vision","photogrammetry","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strawlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":"code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-20T14:09:41.000Z","updated_at":"2025-08-01T05:36:00.000Z","dependencies_parsed_at":"2024-08-04T16:36:38.453Z","dependency_job_id":null,"html_url":"https://github.com/strawlab/dlt","commit_stats":{"total_commits":50,"total_committers":3,"mean_commits":"16.666666666666668","dds":"0.21999999999999997","last_synced_commit":"cc61ee3987fac373a116255e4cec2921f8e85743"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/strawlab/dlt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawlab%2Fdlt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawlab%2Fdlt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawlab%2Fdlt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawlab%2Fdlt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strawlab","download_url":"https://codeload.github.com/strawlab/dlt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawlab%2Fdlt/sbom","scorecard":{"id":854814,"data":{"date":"2025-08-11","repo":{"name":"github.com/strawlab/dlt","commit":"5969445b8ad2fe274433db605f50d41242d8b020"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/strawlab/dlt/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/strawlab/dlt/build.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T23:36:57.690Z","repository_id":40558377,"created_at":"2025-08-23T23:36:57.690Z","updated_at":"2025-08-23T23:36:57.690Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273722711,"owners_count":25156300,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["camera-models","computer-vision","photogrammetry","rust"],"created_at":"2024-12-31T21:14:36.270Z","updated_at":"2025-09-05T06:31:39.945Z","avatar_url":"https://github.com/strawlab.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crate `dlt` for the [Rust language](https://www.rust-lang.org/)\n\n\u003c!-- Note: README.md is generated automatically by `cargo readme` --\u003e\n\n[![Crates.io](https://img.shields.io/crates/v/dlt.svg)](https://crates.io/crates/dlt)\n[![Documentation](https://docs.rs/dlt/badge.svg)](https://docs.rs/dlt/)\n[![Crate License](https://img.shields.io/crates/l/dlt.svg)](https://crates.io/crates/dlt)\n[![Dependency status](https://deps.rs/repo/github/strawlab/dlt/status.svg)](https://deps.rs/repo/github/strawlab/dlt)\n[![build](https://github.com/strawlab/dlt/workflows/build/badge.svg?branch=master)](https://github.com/strawlab/dlt/actions?query=branch%3Amaster)\n\nDLT (direct linear transform) algorithm for camera calibration\n\nThis is typically used for calibrating cameras and requires a minimum of 6\ncorresponding pairs of 2D and 3D locations.\n\n## Testing\n\n### Unit tests\n\nTo run the unit tests:\n\n```\ncargo test\n```\n\n### Test for `no_std`\n\nSince the `thumbv7em-none-eabihf` target does not have `std` available, we\ncan build for it to check that our crate does not inadvertently pull in std.\nThe unit tests require std, so cannot be run on a `no_std` platform. The\nfollowing will fail if a std dependency is present:\n\n```\n# install target with: \"rustup target add thumbv7em-none-eabihf\"\ncargo build --no-default-features --target thumbv7em-none-eabihf\n```\n\n## Example\n\n```rust\nuse dlt::{dlt_corresponding, CorrespondingPoint};\n\nlet points: Vec\u003cCorrespondingPoint\u003cf64\u003e\u003e = vec![\n    CorrespondingPoint {\n        object_point: [-1., -2., -3.],\n        image_point: [219.700, 39.400],\n    },\n    CorrespondingPoint {\n        object_point: [0., 0., 0.],\n        image_point: [320.000, 240.000],\n    },\n    CorrespondingPoint {\n        object_point: [1., 2., 3.],\n        image_point: [420.300, 440.600],\n    },\n    CorrespondingPoint {\n        object_point: [1.1, 2.2, 3.3],\n        image_point: [430.330, 460.660],\n    },\n    CorrespondingPoint {\n        object_point: [4., 5., 6.],\n        image_point: [720.600, 741.200],\n    },\n    CorrespondingPoint {\n        object_point: [4.4, 5.5, 6.6],\n        image_point: [760.660, 791.320],\n    },\n    CorrespondingPoint {\n        object_point: [7., 8., 9.],\n        image_point: [1020.900, 1041.800],\n    },\n    CorrespondingPoint {\n        object_point: [7.7, 8.8, 9.9],\n        image_point: [1090.990, 1121.980],\n    },\n];\n\nlet pmat = dlt_corresponding(\u0026points, 1e-10).unwrap();\n// could now call `cam_geom::Camera::from_perspective_matrix(\u0026pmat)`\n```\n\n## See also\n\nYou may also be interested in:\n\n- [`cam-geom`](https://crates.io/crates/cam-geom) - Rust crate with 3D\n  camera models which can use the calibration data from DLT.\n- [`dlt-examples`](https://github.com/strawlab/dlt/blob/master/dlt-examples)\n  - Unpublished crate in the dlt repository which demonstrates usage with\n  cam-geom library.\n\n## Regenerate `README.md`\n\nThe `README.md` file can be regenerated with:\n\n```text\ncargo readme \u003e README.md\n```\n\n## Code of conduct\n\nAnyone who interacts with this software in any space, including but not limited\nto this GitHub repository, must follow our [code of\nconduct](code_of_conduct.md).\n\n## License\n\nLicensed under either of these:\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\n   https://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or\n   https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrawlab%2Fdlt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrawlab%2Fdlt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrawlab%2Fdlt/lists"}