Commit 43ebcbfe authored by Sandra's avatar Sandra
Browse files

edit md

parent 6911be7e
Branches
No related merge requests found
Showing with 15 additions and 74 deletions
[Week 1]{#Week_1 .mw-headline}[[\[]{.mw-editsection-bracket}[edit](/index.php?title=Digital_residency_on_feminist_peertube_instance&action=edit&section=1 "Edit section: Week 1")[\]]{.mw-editsection-bracket}]{.mw-editsection}
================================================================================================================================================================================================================================
[Week 1]
Tesseract -
[documentation](https://tesseract-ocr.github.io/tessdoc/Command-Line-Usage.html#simplest-invocation-to-ocr-an-image){.external
.text}
[documentation](https://tesseract-ocr.github.io/tessdoc/Command-Line-Usage.html#simplest-invocation-to-ocr-an-image)
------------------------------------------------------------------------
......@@ -24,44 +22,15 @@ Tesseract -
for photo in *.jpg ; do convert $photo -rotate 90 $photo ; done
### [coke-imgs-sound]{#coke-imgs-sound .mw-headline}[[\[]{.mw-editsection-bracket}[edit](/index.php?title=Digital_residency_on_feminist_peertube_instance&action=edit&section=2 "Edit section: coke-imgs-sound")[\]]{.mw-editsection-bracket}]{.mw-editsection}
### [coke-imgs-sound]
\> takes an img \> recognizes txt \> creates pdf with the image and txt
selectable and searchable:
tesseract IMG_5223.png IMG_5223 -l eng --psm 11 pdf
::: {.thumb .tleft}
::: {.thumbinner style="width:302px;"}
[![Coketxt.png](/images/thumb/1/18/Coketxt.png/300px-Coketxt.png){.thumbimage
width="300" height="331"
srcset="/images/thumb/1/18/Coketxt.png/450px-Coketxt.png 1.5x, /images/thumb/1/18/Coketxt.png/600px-Coketxt.png 2x"}](/index.php/File:Coketxt.png){.image}
[![Coketxt.png](week1/Coketxt.png)
::: {.thumbcaption}
::: {.magnify}
[](/index.php/File:Coketxt.png "Enlarge"){.internal}
:::
:::
:::
:::
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\> multiple:
ls -1 *.png | xargs -n 1 bash -c 'tesseract "$0" "${0%.png}" -l eng --psm 11 pdf'
......@@ -70,49 +39,24 @@ srcset="/images/thumb/1/18/Coketxt.png/450px-Coketxt.png 1.5x, /images/thumb/1/1
pdftotext -layout IMG_5223.pdf -
::: {.thumb .tleft}
::: {.thumbinner style="width:502px;"}
[![Coketxt2.png](/images/thumb/8/84/Coketxt2.png/500px-Coketxt2.png){.thumbimage
width="500" height="207"
srcset="/images/8/84/Coketxt2.png 1.5x"}](/index.php/File:Coketxt2.png){.image}
::: {.thumbcaption}
::: {.magnify}
[](/index.php/File:Coketxt2.png "Enlarge"){.internal}
:::
:::
:::
:::
\
\
\
\
\
\
\
\
\
\
\
\
[![Coketxt2.png](week1/Coketxt2.png)
\> output all txt from all img-pdfs into a collected .txt file:
for i in *.pdf; do pdftotext -layout $i - >> coke.txt; done
[Media:Coke.txt](/images/d/dd/Coke.txt "Coke.txt"){.internal}\
[Media:Coke.txt](/week1/Coke.txt "Coke.txt")
\
\> turn .txt file into text2speech sound file:\
espeak
[documentation](http://espeak.sourceforge.net/commands.html){.external
.text}
[documentation](http://espeak.sourceforge.net/commands.html)
espeak -w coke.wav < coke.txt
No support for the video tag, try using a more recent browser that
suports HTML5 audio.
### [playing videos on mpv]{#playing_videos_on_mpv .mw-headline}[[\[]{.mw-editsection-bracket}[edit](/index.php?title=Digital_residency_on_feminist_peertube_instance&action=edit&section=3 "Edit section: playing videos on mpv")[\]]{.mw-editsection-bracket}]{.mw-editsection}
### [playing videos on mpv]
\> playing 2 videos on loop at the same time:
......@@ -125,7 +69,7 @@ suports HTML5 video.
mpv --loop --screen=1 --autofit=100%x100% cokevid.mp4 --external-file=cokevid.mp4 --external-file=cokevid.mp4 --external-file=cokevid.mp4 --lavfi-complex='[vid1] [vid2] hstack [t1] ; [vid3] [vid4] hstack [t2] ; [t1] [t2] vstack [vo]'
### [make a video from imgs]{#make_a_video_from_imgs .mw-headline}[[\[]{.mw-editsection-bracket}[edit](/index.php?title=Digital_residency_on_feminist_peertube_instance&action=edit&section=4 "Edit section: make a video from imgs")[\]]{.mw-editsection-bracket}]{.mw-editsection}
### [make a video from imgs]
\> if imgs are not numbered sequentially
......@@ -135,7 +79,7 @@ suports HTML5 video.
ffmpeg -framerate 10 -i %d.png coketext.mp4
### [to produce blank video]{#to_produce_blank_video .mw-headline}[[\[]{.mw-editsection-bracket}[edit](/index.php?title=Digital_residency_on_feminist_peertube_instance&action=edit&section=5 "Edit section: to produce blank video")[\]]{.mw-editsection-bracket}]{.mw-editsection}
### [to produce blank video]
\> method 1:
......@@ -160,7 +104,7 @@ some explanations of settings:
-i: input
```
### [coke.sh \-- textfile-2-video]{#coke.sh_--_textfile-2-video .mw-headline}[[\[]{.mw-editsection-bracket}[edit](/index.php?title=Digital_residency_on_feminist_peertube_instance&action=edit&section=6 "Edit section: coke.sh -- textfile-2-video")[\]]{.mw-editsection-bracket}]{.mw-editsection}
### [coke.sh \-- textfile-2-video]
ingredients: - imagemagick - ffmpeg - mpv
......@@ -201,7 +145,7 @@ ingredients: - imagemagick - ffmpeg - mpv
No support for the video tag, try using a more recent browser that
suports HTML5 video.
### [video overlay]{#video_overlay .mw-headline}[[\[]{.mw-editsection-bracket}[edit](/index.php?title=Digital_residency_on_feminist_peertube_instance&action=edit&section=7 "Edit section: video overlay")[\]]{.mw-editsection-bracket}]{.mw-editsection}
### [video overlay]
\> to place a video on top of another video:
......@@ -257,11 +201,8 @@ color=s= : video size (width x height)
others i havent looked into yet, please feel free to add/edit :)
```
### [results week1]{#results_week1 .mw-headline}[[\[]{.mw-editsection-bracket}[edit](/index.php?title=Digital_residency_on_feminist_peertube_instance&action=edit&section=9 "Edit section: results week1")[\]]{.mw-editsection-bracket}]{.mw-editsection}
### [results week1]
\>
[\[hhypercoem](https://tube.systerserver.net/w/hFyZaEBAxDHaqiopwLf4qd){.external
.text}\]\
[\[hhypercoem](https://tube.systerserver.net/w/hFyZaEBAxDHaqiopwLf4qd)\]\
\>
[\[week1\_auto\_tut](https://tube.systerserver.net/w/wnwvBUSPTvdMNmiNUqEJQL){.external
.text}\]\
[\[week1\_auto\_tut](https://tube.systerserver.net/w/wnwvBUSPTvdMNmiNUqEJQL)\]\
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment