Comments (3)
@jabooth Is maintaining the order of keys as specified in the file important ? As order should not matter in yaml files order is not guaranteed by the PyYAML parser but it could be handled if needed.
Otherwise previous commits parses templates like :
mouth:
points: 6
nose:
points: 3
connectivity:
- 0 1
- 1 2
left_eye:
points: 8
connectivity:
- 0:7
- 7 0
right_eye:
points: 8
connectivity: cycle
chin: 1
to the same json as the text files (without the same order)
from landmarkerio-server.
@lirsacc Unfortunately order is important - this is because landmarks can always be interpreted as a single large (ordered) point collection, or single ordered groups.
I believe we moved the an array in LJSON format 2 from keys so we had a guarantee of maintaining key order. Perhaps we should use an array in YAML template too to definite the different groups?
from landmarkerio-server.
Yep, simple array should work with something like:
groups:
- label: mouth
points: 6
- label: nose
points: 3
connectivity:
- 0 1
- 1 2
- label: left_eye
points: 8
connectivity:
- 0:7
- 7 0
- label: right_eye
points: 8
connectivity: cycle
- label: chin
points: 1
Would also make it simpler to add metadata aside the actual template (ignored now but tracking an update date to compare with ljson file could have it's use for versioning schemas)
I have updated my branch and it consistently gives the same json output as the old text file.
from landmarkerio-server.
Related Issues (20)
- Sort the 'all' collection HOT 1
- add git support - commit on landmark save.
- dependency on libGL (menpo3d -> CyRasterize) HOT 3
- warning should be raised (or error?) on trying to handle images larger than 4096 HOT 4
- landmarker.io website only shows demo HOT 7
- AttributeError: 'CacheFile' object has no attribute 'startswith' HOT 11
- command line tool for serving meshes. HOT 1
- Template extension has to be `.yml` to work
- ImportError: libgfortran.so.1: cannot open shared object file: No such file or directory HOT 4
- Save Failed HOT 1
- Unsatifiable error HOT 1
- landmarkerio server installation
- pip install landmarkerio-server HOT 1
- Landmarker.io server down/unreachable HOT 2
- Accessing landmarks which don't exist yields CORS error
- ~/.lmio/ configuration, default template.
- Document template format. HOT 1
- Allow ranges in template format (0 1, 1 2 == 0:2) HOT 1
- order of assets in collections should be maintained HOT 1
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 landmarkerio-server.