Commit 3d316ace authored by Ahmed's avatar Ahmed

BallTracking Modell

parent f5baf0ce
Pipeline #232525 failed with stage
in 50 seconds
target
nppBackup
.project
.settings
.classpath
.idea
.git
*.iml
# (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
<?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>
<?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>
/* (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
package de.rwth.ba;
component CVBoundingRect {
port
in Q contour,
out Q rect;
implementation Math {
rect = boundingRect(contour);
}
}
\ No newline at end of file
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
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
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
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
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
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);
}
}
package de.rwth.ba;
component CVLargestContour{
port
in Q contours,
out Q lContour;
implementation Math{
lContour = largestContour(contours);
}
}
\ No newline at end of file
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment