Comments (4)
In fact, why do we have a separate method for sorting filenames at all? Isn't simply sorting them in a lexicographic order enough? While that wouldn't work when the numbers are not zero-padded (such as file_1.jpg
to file_10.jpg
), I think that's very rare and easily correctable with some shell scripting.
Also, I believe there is a bug in the code where filenames such as file-01_0001.jpg
, file-01_0002.jpeg
won't be correctly sorted. That would also be fixed with lexicographic sort.
from apriltools.
You are correct; I was trying to catch the edge case you mentioned, while creating a bug for the other edge case. I believe that the correct approach would be to parse the number from the filename from the end to the start, possibly ending when the number is too large (6 digits?). This approach would cover both edge cases mentioned while still working for other cases.
from apriltools.
The simplest solution to me is simply assuming zero-padded frame numbers, I believe that's what most video software does.
from apriltools.
You are probably right. I am about to leave home soon, but I'll reimplement the sorting shortly.
from apriltools.
Related Issues (20)
- Focal Length Estimation -1 px HOT 4
- Run AprilTools on linux HOT 5
- When using Cmake, the source direction /apriltag does not contain a CMakeLists.txt file. HOT 2
- Tracking stops on frame 73 HOT 1
- Tag is not aligned with marker on vertical video HOT 3
- Build from source gets stuck at 21% on OSX HOT 2
- Live Video Feed HOT 1
- Shaky 3d objects despite good tracking HOT 2
- Doesnt work in new Blender Versions. HOT 2
- Adding all apriltag families HOT 1
- tracking not working
- Python script won't import in 2.91
- Import track to blender camera not moving HOT 2
- Has this project been abandoned? HOT 7
- Don't package AprilTools.exe in bin/, package it in releases.
- CI/CD
- Add a .gitignore HOT 1
- april tools does not detect the contents of this folder HOT 2
- Issue when trying to import to blender HOT 8
- A readme for python-rewrite?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apriltools.