Skip to content

Commit

Permalink
Merge pull request #358 from Chris-F5/fix-readme
Browse files Browse the repository at this point in the history
Fix README C example
  • Loading branch information
christian-rauch authored Oct 1, 2024
2 parents 786ad11 + 2e3fa04 commit e285f15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ Alternately you can use the AprilTag python bindings created by [duckietown](htt

### C

image_u8_t* im = image_u8_create_from_pnm("test.png");
image_u8_t* im = image_u8_create_from_pnm("test.pnm");
if (im == NULL) {
fprintf(stderr, "Failed to load pnm image.\n");
exit(1);
}
apriltag_detector_t *td = apriltag_detector_create();
apriltag_family_t *tf = tagStandard41h12_create();
apriltag_detector_add_family(td, tf);
Expand Down

0 comments on commit e285f15

Please sign in to comment.