forked from Hermann-SW/fork-raspiraw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bulk commit of everything contained in raspiraw.drop.5_26_18.zip
- Loading branch information
1 parent
7fe5f72
commit 7362b3b
Showing
13 changed files
with
167 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
if [ "$1" = "" ]; then echo "format: `basename $0` ms"; exit; fi | ||
|
||
echo "removing /dev/shm/out.*.raw" | ||
rm -f /dev/shm/out.*.raw | ||
|
||
fps=190 | ||
echo "capturing frames for ${1}ms with ${fps}fps requested" | ||
raspiraw -md 5 -t $1 -ts tstamps.csv -hd0 hd0.32k --height 176 --top 0 --vinc F1 --fps $fps -sr 1 -o /dev/shm/out.%04d.raw 2>/dev/null >/dev/null | ||
|
||
us=`cut -f1 -d, tstamps.csv | sort -n | uniq -c | sort -n | tail -1 | cut -b9-` | ||
l=`ls -l /dev/shm/out.*.raw | wc --lines` | ||
echo "$l frames were captured at $((1000000 / $us))fps" | ||
|
||
echo "frame delta time[us] distribution" | ||
cut -f1 -d, tstamps.csv | sort -n | uniq -c | ||
|
||
echo "after skip frame indices (middle column)" | ||
grep "^[1-46-9]" tstamps.csv | ||
|
||
skips=`grep "^[1-46-9]" tstamps.csv | wc --lines | cut -f1 -d\ ` | ||
stamps=`wc --lines tstamps.csv | cut -f1 -d\ ` | ||
per=`expr \( 100 \* $skips \) / \( $skips + $stamps \)` | ||
echo "$per% frame skips" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,4 @@ | ||
#!/bin/bash | ||
echo "please use 1296x704_s instead" | ||
|
||
if [ "$1" = "" ]; then echo "format: `basename $0` ms"; exit; fi | ||
|
||
echo "removing /dev/shm/out.*.raw" | ||
rm -f /dev/shm/out.*.raw | ||
|
||
fps=190 | ||
echo "capturing frames for ${1}ms with ${fps}fps requested" | ||
raspiraw -md 5 -t $1 -ts tstamps.csv -hd0 hd0.32k --height 180 --top 0 --vinc F1 --fps $fps -sr 1 -o /dev/shm/out.%04d.raw 2>/dev/null >/dev/null | ||
|
||
us=`cut -f1 -d, tstamps.csv | sort -n | uniq -c | sort -n | tail -1 | cut -b9-` | ||
l=`ls -l /dev/shm/out.*.raw | wc --lines` | ||
echo "$l frames were captured at $((1000000 / $us))fps" | ||
|
||
echo "frame delta time[us] distribution" | ||
cut -f1 -d, tstamps.csv | sort -n | uniq -c | ||
|
||
echo "after skip frame indices (middle column)" | ||
grep "^[1-46-9]" tstamps.csv | ||
|
||
skips=`grep "^[1-46-9]" tstamps.csv | wc --lines | cut -f1 -d\ ` | ||
stamps=`wc --lines tstamps.csv | cut -f1 -d\ ` | ||
per=`expr \( 100 \* $skips \) / \( $skips + $stamps \)` | ||
echo "$per% frame skips" | ||
# https://www.raspberrypi.org/forums/viewtopic.php?f=43&p=1319906#p1319906 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
if [ "$1" = "" ]; then echo "format: `basename $0` ms"; exit; fi | ||
|
||
echo "removing /dev/shm/out.*.raw" | ||
rm -f /dev/shm/out.*.raw | ||
|
||
fps=114 | ||
echo "capturing frames for ${1}ms with ${fps}fps requested" | ||
raspiraw -md 5 -t $1 -ts tstamps.csv -hd0 hd0.32k --height 360 --top 0 --vinc 71 --fps $fps -sr 1 -o /dev/shm/out.%04d.raw 2>/dev/null >/dev/null | ||
|
||
us=`cut -f1 -d, tstamps.csv | sort -n | uniq -c | sort -n | tail -1 | cut -b9-` | ||
l=`ls -l /dev/shm/out.*.raw | wc --lines` | ||
echo "$l frames were captured at $((1000000 / $us))fps" | ||
|
||
echo "frame delta time[us] distribution" | ||
cut -f1 -d, tstamps.csv | sort -n | uniq -c | ||
|
||
echo "after skip frame indices (middle column)" | ||
grep "^[1-79]" tstamps.csv | ||
|
||
skips=`grep "^[1-79]" tstamps.csv | wc --lines | cut -f1 -d\ ` | ||
stamps=`wc --lines tstamps.csv | cut -f1 -d\ ` | ||
per=`expr \( 100 \* $skips \) / \( $skips + $stamps \)` | ||
echo "$per% frame skips" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,4 @@ | ||
#!/bin/bash | ||
echo "please use 1296x720_s instead" | ||
|
||
if [ "$1" = "" ]; then echo "format: `basename $0` ms"; exit; fi | ||
|
||
echo "removing /dev/shm/out.*.raw" | ||
rm -f /dev/shm/out.*.raw | ||
|
||
fps=98 | ||
echo "capturing frames for ${1}ms with ${fps}fps requested" | ||
raspiraw -md 5 -t $1 -ts tstamps.csv -hd0 hd0.32k --height 365 --top 0 --vinc 71 --fps $fps -sr 1 -o /dev/shm/out.%04d.raw 2>/dev/null >/dev/null | ||
|
||
us=`cut -f1 -d, tstamps.csv | sort -n | uniq -c | sort -n | tail -1 | cut -b9-` | ||
l=`ls -l /dev/shm/out.*.raw | wc --lines` | ||
echo "$l frames were captured at $((1000000 / $us))fps" | ||
|
||
echo "frame delta time[us] distribution" | ||
cut -f1 -d, tstamps.csv | sort -n | uniq -c | ||
|
||
echo "after skip frame indices (middle column)" | ||
grep "^[2-9]" tstamps.csv | ||
|
||
skips=`grep "^[2-9]" tstamps.csv | wc --lines | cut -f1 -d\ ` | ||
stamps=`wc --lines tstamps.csv | cut -f1 -d\ ` | ||
per=`expr \( 100 \* $skips \) / \( $skips + $stamps \)` | ||
echo "$per% frame skips" | ||
# https://www.raspberrypi.org/forums/viewtopic.php?f=43&p=1319906#p1319906 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
cd `dirname $0`/.. && ./camera_i2c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
dt=`vcgencmd get_camera | grep "detected=1"` | ||
if [ "$dt" = "" ]; then | ||
echo "no camera detected" | ||
else | ||
cd ~/raspiraw ; ./camera_i2c 2>&1 | cat > /dev/null | ||
v1=`i2cdetect -y 0 54 54 | grep " 36"` ; v2=`i2cdetect -y 0 16 16 | grep " 10"` | ||
if [ "$v1" != "" ]; then echo -n "v1"; fi | ||
if [ "$v2" != "" ]; then echo -n "v2"; fi | ||
echo " camera found" | ||
fi |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../raspiraw |