Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
orwl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Gustedt
orwl
Commits
36559571
Commit
36559571
authored
7 years ago
by
Farouk Mansouri
Browse files
Options
Downloads
Patches
Plain Diff
Some documentation and test
parent
d021a5c5
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tracking/Makefile
+3
-3
3 additions, 3 deletions
tracking/Makefile
tracking/README
+31
-0
31 additions, 0 deletions
tracking/README
tracking/blob.c
+1
-2
1 addition, 2 deletions
tracking/blob.c
tracking/consumer.c
+3
-3
3 additions, 3 deletions
tracking/consumer.c
with
38 additions
and
8 deletions
tracking/Makefile
+
3
−
3
View file @
36559571
...
@@ -140,10 +140,10 @@ else
...
@@ -140,10 +140,10 @@ else
CFLAGS
+=
-DPOTI
=
1
CFLAGS
+=
-DPOTI
=
1
endif
endif
ifeq
(${ORWL_SPLIT},)
#
ifeq (${ORWL_SPLIT},)
else
#
else
CFLAGS
+=
-DBLOB_SPLIT
=
1
CFLAGS
+=
-DBLOB_SPLIT
=
1
endif
#
endif
##############################
##############################
...
...
This diff is collapsed.
Click to expand it.
tracking/README
0 → 100644
+
31
−
0
View file @
36559571
1-Introduction:
This is code of video tracking of mobiles based on ORWL model of progeamming. The used approach
is background extraction of each frame, then post-process the foreground, then extract blobs
representing mobiles, then track the blobs according to texture and geometric informations.
The model of execution is steaming pipeline with static placement of each actor on the machine
and executed by an ORWL task. Dependencies data (images) are managed with ORWL locations and hendles.
2-Compilation:
To compile you need to install:
- OpenCV 4.9 with ffmpeg support
- CVblob https://github.com/Steelskin/cvblob
- Poti (Optional)
- Hwloc (Optional)
- Treematch (Optional)
3-Run
To run tracking of a video you only need to arguments: number of iterations, and video path file.
example:
cd /orwl/tracking
../scripts/simple-threaded-run.sh TEST 16 ./orwl_tracking_pipeline 50 /home/farouk/orwl/tracking/videos/Full_HD_Video_Surveillance_on_Street.mp4
4-Split option
It is possible to define the split number of GMM task and Blob task by modifying TASK_SPLIT ans TASK_SPLIT_BLOB in orwl_tracking_pipeline.c
The defaut values are 4 and 2 and it's not possible to put 0.
This diff is collapsed.
Click to expand it.
tracking/blob.c
+
1
−
2
View file @
36559571
...
@@ -16,8 +16,7 @@
...
@@ -16,8 +16,7 @@
#include
"wrapper.h"
#include
"wrapper.h"
#include
"blob.h"
#include
"blob.h"
#define DEBUG
//#define DEBUG
//#define BLOB_SPLIT
void
blob
(
orwl_handle2
*
there
,
orwl_handle2
*
here
,
orwl_handle2
*
here_split
,
orwl_handle2
there_sec_blob
[],
int
loop
,
int
loop_size
,
int
mytid
,
int
size_h
,
int
size_w
,
int
split
)
{
void
blob
(
orwl_handle2
*
there
,
orwl_handle2
*
here
,
orwl_handle2
*
here_split
,
orwl_handle2
there_sec_blob
[],
int
loop
,
int
loop_size
,
int
mytid
,
int
size_h
,
int
size_w
,
int
split
)
{
ORWL_TIMER
(
BLOB
)
ORWL_TIMER
(
BLOB
)
...
...
This diff is collapsed.
Click to expand it.
tracking/consumer.c
+
3
−
3
View file @
36559571
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
#include
"consumer.h"
#include
"consumer.h"
#define TIMING
#define TIMING
//
#define SAVING
#define SAVING
//#define DISPLAY
//#define DISPLAY
#define DEBUG
//
#define DEBUG
CvVideoWriter
**
out
;
CvVideoWriter
**
out
;
...
@@ -50,7 +50,7 @@ void consumer(orwl_handle2 *there, orwl_handle2 *here, int loop, int loop_size,
...
@@ -50,7 +50,7 @@ void consumer(orwl_handle2 *there, orwl_handle2 *here, int loop, int loop_size,
/// saving ///
/// saving ///
#ifdef SAVING
#ifdef SAVING
if
(
loop
==
0
)
{
if
(
loop
==
0
)
{
out
=
cvCreateVideoWriter
(
"
videos/
tracking_out
_1
.avi"
,
CV_FOURCC
(
'D'
,
'I'
,
'V'
,
'X'
),
30
,
cvSize
((
int
)
size_w
,(
int
)
size_h
),
1
);
out
=
cvCreateVideoWriter
(
"tracking_out.avi"
,
CV_FOURCC
(
'D'
,
'I'
,
'V'
,
'X'
),
30
,
cvSize
((
int
)
size_w
,(
int
)
size_h
),
1
);
}
}
int
test
=
cvWriteFrame
(
out
,
track_out
);
int
test
=
cvWriteFrame
(
out
,
track_out
);
printf
(
"
\n
I'm a task Consumer N° %d | video writer is : %d
\n
"
,
loop
,
test
);
printf
(
"
\n
I'm a task Consumer N° %d | video writer is : %d
\n
"
,
loop
,
test
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment