mirror of
https://github.com/wassname/sloth.git
synced 2026-07-05 19:59:08 +08:00
add example section to the documentation for tips & tricks
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
.. highlight:: python
|
||||
|
||||
========
|
||||
Examples
|
||||
========
|
||||
|
||||
Adding every nth image to label file
|
||||
------------------------------------
|
||||
|
||||
This can be achieved by a combination of ``find`` and ``awk``::
|
||||
|
||||
find shot01/ -iname "*.png" | sort | awk 'NR%5==1' | xargs sloth appendfiles shot1.json
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ Contents
|
||||
items
|
||||
inserters
|
||||
containers
|
||||
examples
|
||||
api/index
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user