Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
Jetson-Triton-LPR
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YONG-LIN SU
Jetson-Triton-LPR
Commits
a7a20895
Commit
a7a20895
authored
Jun 13, 2022
by
YONG-LIN SU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20220613 merged
parent
eb8ebc3e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
10 deletions
+6
-10
PlanB_test0613.py
PlanB_test0613.py
+4
-4
Camera_Jetson.py
VideoAnalysis/Camera_Jetson.py
+2
-6
Camera_Jetson.cpython-36.pyc
VideoAnalysis/__pycache__/Camera_Jetson.cpython-36.pyc
+0
-0
ObjectMeta.cpython-36.pyc
VideoAnalysis/__pycache__/ObjectMeta.cpython-36.pyc
+0
-0
No files found.
PlanB_test0613.py
View file @
a7a20895
...
...
@@ -38,10 +38,10 @@ easyLPR=EZLPR()
# source="/home/aaeon/Kevin_Car.MOV"
#source = "../Ch17-20220314-190000.mp4"
source
=
"rtsp://192.168.5.218/txg/01"
#
source="rtsp://140.120.65.31/live.sdp"
cam
=
Camera
(
1
,
source
,
encoder
=
"h265"
,
width
=
1920
,
height
=
1080
)
#
cam=Camera(1,source,encoder = "h264",width=1920,height=1080)
#
source="rtsp://192.168.5.218/txg/01"
source
=
"rtsp://140.120.65.31/live.sdp"
#
cam=Camera(1,source,encoder = "h265",width=1920,height=1080)
cam
=
Camera
(
1
,
source
,
encoder
=
"h264"
,
width
=
1920
,
height
=
1080
)
camera_id
=
1
break_flag
=
False
...
...
VideoAnalysis/Camera_Jetson.py
View file @
a7a20895
...
...
@@ -15,11 +15,7 @@ class Camera(object):
self
.
height
=
height
self
.
framerate
=
framerate
self
.
encoder
=
encoder
<<<<<<<
HEAD
self
.
use_gstr
=
True
=======
self
.
use_gstr
=
use_gstr
>>>>>>>
e020b4923e347af9612c9f21db2490da91fbf4fe
self
.
__thread
=
Thread
(
target
=
self
.
__job
)
self
.
resultQueue
=
Queue
(
maxsize
=
maxsize
)
def
start
(
self
):
...
...
@@ -90,14 +86,14 @@ class Camera(object):
if
self
.
encoder
==
"h265"
:
print
(
"h265"
)
return
(
f
'rtspsrc location={source}
protocols=tcp
! '
+
f
'rtspsrc location={source} ! '
+
# 'watchdog timeout=10000 !'+
'rtph265depay ! h265parse ! nvv4l2decoder ! nvvidconv ! '
+
'video/x-raw,format=BGRx ! videoconvert ! video/x-raw,format=BGR ! appsink'
)
elif
self
.
encoder
==
"h264"
:
print
(
"h264"
)
gst_str
=
(
'rtspsrc location={} latency={}
protocols=tcp
! '
gst_str
=
(
'rtspsrc location={} latency={} ! '
'rtph264depay ! h264parse ! omxh264dec ! '
'nvvidconv ! '
'video/x-raw, width=(int){}, height=(int){}, '
...
...
VideoAnalysis/__pycache__/Camera_Jetson.cpython-36.pyc
View file @
a7a20895
No preview for this file type
VideoAnalysis/__pycache__/ObjectMeta.cpython-36.pyc
View file @
a7a20895
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment