Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
applications
BallTracking
Commits
3d316ace
Commit
3d316ace
authored
Jan 24, 2020
by
Ahmed
Browse files
BallTracking Modell
parent
f5baf0ce
Pipeline
#232525
failed with stage
in 50 seconds
Changes
15
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
3d316ace
target
nppBackup
.project
.settings
.classpath
.idea
.git
*.iml
.gitlab-ci.yml
0 → 100644
View file @
3d316ace
# (c) https://github.com/MontiCore/monticore
stages
:
-
windows
masterJobWindows
:
stage
:
windows
script
:
-
java -jar embedded-montiarc-math-generator-0.1.15-SNAPSHOT-jar-with-dependencies.jar -m src/main/emam -r ba.BallTracking -o target
only
:
-
master
tags
:
-
Windows10
BranchJobWindows
:
stage
:
windows
script
:
-
java -jar embedded-montiarc-math-generator-0.1.15-SNAPSHOT-jar-with-dependencies.jar -m src/main/emam -r ba.BallTracking -o target
except
:
-
master
tags
:
-
Windows10
embedded-montiarc-math-generator-0.1.15-SNAPSHOT-jar-with-dependencies.jar
0 → 100644
View file @
3d316ace
File added
pom.xml
0 → 100644
View file @
3d316ace
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
de.monticore.lang.monticar.utilities
</groupId>
<artifactId>
emadllib
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<name>
emadllib
</name>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
1.8
</maven.compiler.source>
<maven.compiler.target>
1.8
</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<groupId>
de.monticore.lang.monticar.utilities
</groupId>
<artifactId>
maven-streamtest
</artifactId>
<version>
0.0.5
</version>
<configuration>
<pathMain>
./src/main/emam
</pathMain>
<pathTest>
./src/test/emam
</pathTest>
<pathTmpOut>
./target/tmp
</pathTmpOut>
<generator>
MinGW
</generator>
</configuration>
<executions>
<execution>
<phase>
test
</phase>
<goals>
<goal>
streamtest-execute
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
settings.xml
0 → 100644
View file @
3d316ace
<?xml version="1.0" encoding="UTF-8"?>
<settings
xmlns=
"http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"
>
<pluginGroups>
<pluginGroup>
org.mortbay.jetty
</pluginGroup>
<pluginGroup>
de.topobyte
</pluginGroup>
</pluginGroups>
<proxies>
</proxies>
<servers>
<server>
<id>
se-nexus
</id>
<username>
cibuild
</username>
<password>
${env.cibuild}
</password>
</server>
</servers>
<mirrors>
<mirror>
<id>
se-nexus
</id>
<mirrorOf>
external:*
</mirrorOf>
<url>
https://nexus.se.rwth-aachen.de/content/groups/public
</url>
</mirror>
<mirror>
<id>
icm-repository
</id>
<mirrorOf>
icm
</mirrorOf>
<url>
http://maven.icm.edu.pl/artifactory/repo/
</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>
sonar
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<!-- Optional URL to server. Default value is http://localhost:9000 -->
<sonar.host.url>
https://metric.se.rwth-aachen.de
</sonar.host.url>
<sonar.login>
jenkins
</sonar.login>
<sonar.password>
${env.sonar}
</sonar.password>
</properties>
</profile>
<profile>
<id>
se-nexus
</id>
<repositories>
<repository>
<id>
central
</id>
<url>
http://central
</url>
<releases><enabled
/></releases>
<snapshots><enabled
/></snapshots>
</repository>
<repository>
<id>
icm
</id>
<url>
http://maven.icm.edu.pl/artifactory/repo/
</url>
<releases><enabled
/></releases>
<snapshots><enabled
/></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>
central
</id>
<url>
http://central
</url>
<releases><enabled
/></releases>
<snapshots><enabled
/></snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>
se-nexus
</activeProfile>
</activeProfiles>
</settings>
src/main/emam/ba/BallTracking.emam
0 → 100644
View file @
3d316ace
/*
(
c
)
https
://
github
.
com
/
MontiCore
/
monticore
*/
package
de
.
rwth
.
ba
;
component
BallTracking
{
port
in
Q
^{
3
,
1280
,
720
}
imageIn
,
//
GaussianBlur
ports
in
Z
sizeXIn
,
in
Z
sizeYIn
,
in
Q
sigmaXIn
,
in
Q
sigmaYIn
,
//
CvtColor
ports
in
Z
colorConversionIn
,
//
InRange
ports
in
Q
^{
3
}
lowerBoundaryIn
,
in
Q
^{
3
}
upperBoundaryIn
,
//
Erode
ports
in
Z
erosion_elemIn
,
in
Z
iterationsIn1
,
//
Dilate
ports
in
Z
dilation_elemIn
,
in
Z
iterationsIn2
,
//
FindContours
ports
in
Z
modeIn
,
in
Z
methodIn
,
//
RectAngle
ports
in
Q
^{
3
}
colorIn
,
in
Z
thicknessIn
,
in
Z
lineTypeIn
,
//
i
want
to
input
the
image
again
out
Q
^{
3
,
1280
,
720
}
modImageOut
;
instance
CVGaussianBlur
<
1280
,
720
>
gaussBlur
;
instance
CVCvtColor
<
1280
,
720
>
cvtColor
;
instance
CVInRange
<
1280
,
720
>
inRange
;
instance
CVErode
<
1280
,
720
>
erode
;
instance
CVDilate
<
1280
,
720
>
dilate
;
instance
CVFindContours
<
1280
,
720
>
findContours
;
instance
CVLargestContour
largestContour
;
instance
CVBoundingRect
boundingRect
;
instance
CVRectangle
<
1280
,
720
>
rectAngle
;
//
GaussianBlur
connect
imageIn
->
gaussBlur
.
src
;
connect
sizeXIn
->
gaussBlur
.
sizeX
;
connect
sizeYIn
->
gaussBlur
.
sizeY
;
connect
sigmaXIn
->
gaussBlur
.
sigmaX
;
connect
sigmaYIn
->
gaussBlur
.
sigmaY
;
connect
gaussBlur
.
dst
->
cvtColor
.
src
;
//
CvtColor
connect
colorConversionIn
->
cvtColor
.
colorConversion
;
connect
cvtColor
.
dst
->
inRange
.
src
;
//
InRange
connect
lowerBoundaryIn
->
inRange
.
lowerBoundary
;
connect
upperBoundaryIn
->
inRange
.
upperBoundary
;
connect
inRange
.
dst
->
erode
.
src
;
//
Erode
connect
erosion_elemIn
->
erode
.
erosion_elem
;
connect
iterationsIn1
->
erode
.
iterations
;
connect
erode
.
dst
->
dilate
.
src
;
//
dilate
connect
dilation_elemIn
->
dilate
.
dilation_elem
;
connect
iterationsIn2
->
dilate
.
iterations
;
connect
dilate
.
dst
->
findContours
.
image
;
//
FindContours
connect
modeIn
->
findContours
.
mode
;
connect
methodIn
->
findContours
.
method
;
connect
findContours
.
contours
->
largestContour
.
contours
;
//
LargestContour
connect
largestContour
.
lContour
->
boundingRect
.
contour
;
//
BoundingRect
connect
boundingRect
.
rect
->
rectAngle
.
rect
;
//
CVRectAngle
connect
imageIn
->
rectAngle
.
src
;
connect
colorIn
->
rectAngle
.
color
;
connect
thicknessIn
->
rectAngle
.
thickness
;
connect
lineTypeIn
->
rectAngle
.
lineType
;
//
how
to
connect
the
src
Image
here
as
input
connect
rectAngle
.
outputImg
->
modImageOut
;
}
\ No newline at end of file
src/main/emam/ba/CVBoundingRect.emam
0 → 100644
View file @
3d316ace
package
de
.
rwth
.
ba
;
component
CVBoundingRect
{
port
in
Q
contour
,
out
Q
rect
;
implementation
Math
{
rect
=
boundingRect
(
contour
);
}
}
\ No newline at end of file
src/main/emam/ba/CVCvtColor.emam
0 → 100644
View file @
3d316ace
package
de
.
rwth
.
ba
;
component
CVCvtColor
<
N
n
,
N
m
>
{
port
in
Q
^{
3
,
n
,
m
}
src
,
in
Z
colorConversion
,
out
Q
^{
3
,
n
,
m
}
dst
;
implementation
Math
{
dst
=
cvtColor
(
src
,
colorConversion
);
}
}
\ No newline at end of file
src/main/emam/ba/CVDilate.emam
0 → 100644
View file @
3d316ace
package
de
.
rwth
.
ba
;
component
CVDilate
<
N
n
,
N
m
>
{
port
in
Q
^{
n
,
m
}
src
,
in
Z
dilation_elem
,
in
Z
iterations
,
out
Q
^{
n
,
m
}
dst
;
implementation
Math
{
dst
=
dilate
(
src
,
dilation_elem
,
iterations
);
}
}
\ No newline at end of file
src/main/emam/ba/CVErode.emam
0 → 100644
View file @
3d316ace
package
de
.
rwth
.
ba
;
component
CVErode
<
N
n
,
N
m
>
{
port
in
Q
^{
n
,
m
}
src
,
in
Z
erosion_elem
,
in
Z
iterations
,
out
Q
^{
n
,
m
}
dst
;
implementation
Math
{
dst
=
erode
(
src
,
erosion_elem
,
iterations
);
}
}
\ No newline at end of file
src/main/emam/ba/CVFindContours.emam
0 → 100644
View file @
3d316ace
package
de
.
rwth
.
ba
;
component
CVFindContours
<
N
n
,
N
m
>
{
port
in
Q
^{
n
,
m
}
image
,
in
Z
mode
,
in
Z
method
,
out
Q
contours
;
implementation
Math
{
contours
=
findContours
(
image
,
mode
,
method
);
}
}
\ No newline at end of file
src/main/emam/ba/CVGaussianBlur.emam
0 → 100644
View file @
3d316ace
package
de
.
rwth
.
ba
;
component
CVGaussianBlur
<
N
n
,
N
m
>
{
port
in
Q
^{
3
,
n
,
m
}
src
,
in
Z
sizeX
,
in
Z
sizeY
,
in
Q
sigmaX
,
in
Q
sigmaY
,
out
Q
^{
3
,
n
,
m
}
dst
;
implementation
Math
{
dst
=
gaussianBlur
(
src
,
sizeX
,
sizeY
,
sigmaX
,
sigmaY
);
}
}
\ No newline at end of file
src/main/emam/ba/CVInRange.emam
0 → 100644
View file @
3d316ace
package
de
.
rwth
.
ba
;
component
CVInRange
<
N
n
,
N
m
>
{
port
in
Q
^{
3
,
n
,
m
}
src
,
in
Q
^{
3
}
lowerBoundary
,
in
Q
^{
3
}
upperBoundary
,
out
Q
^{
n
,
m
}
dst
;
implementation
Math
{
dst
=
inRange
(
src
,
lowerBoundary
,
upperBoundary
);
}
}
src/main/emam/ba/CVLargestContour.emam
0 → 100644
View file @
3d316ace
package
de
.
rwth
.
ba
;
component
CVLargestContour
{
port
in
Q
contours
,
out
Q
lContour
;
implementation
Math
{
lContour
=
largestContour
(
contours
);
}
}
\ No newline at end of file
src/main/emam/ba/CVRectangle.emam
0 → 100644
View file @
3d316ace
package
de
.
rwth
.
ba
;
component
CVRectangle
<
N
n
,
N
m
>
{
port
in
Q
^{
3
,
n
,
m
}
src
,
in
Q
rect
,
in
Q
^{
3
}
color
,
in
Z
thickness
,
in
Z
lineType
,
out
Q
^{
3
,
n
,
m
}
outputImg
;
implementation
Math
{
outputImg
=
rectangle
(
src
,
rect
,
color
,
thickness
,
lineType
);
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment