-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from rcland12/jetson_develop
Jetson develop
- Loading branch information
Showing
11 changed files
with
152 additions
and
155 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
if [ "${OBJECT_DETECTION}" == "True" ]; then | ||
python3 main.py | ||
elif [ "${OBJECT_DETECTION}" == "False" ]; then | ||
/bin/bash stream.sh | ||
else | ||
echo "Invalid input for OBJECT_DETECTION. Expecting True or False; received ${OBJECT_DETECTION}." | ||
exit 120 | ||
fi |
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,8 @@ | ||
#!/bin/bash | ||
RTMP_URI=location=rtmp://"$STREAM_IP":"$STREAM_PORT"/"$STREAM_APPLICATION"/"$STREAM_KEY"" live=true" | ||
gst-launch-1.0 nvarguscamerasrc sensor-id=$CAMERA_INDEX ! \ | ||
'video/x-raw(memory:NVMM)', width=$CAMERA_WIDTH, height=$CAMERA_HEIGHT, framerate=$CAMERA_FPS/1, format=NV12 ! \ | ||
nvv4l2h264enc ! \ | ||
h264parse ! \ | ||
flvmux ! \ | ||
rtmpsink "$RTMP_URI" |
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
Oops, something went wrong.