Version 27.11
This commit is contained in:
parent
bd78af3b48
commit
6bdf666188
18
.idea/workspace.xml
generated
18
.idea/workspace.xml
generated
@ -4,9 +4,10 @@
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="4d75e996-cee4-4ec6-b802-5b56d0c0eac4" name="Changes" comment="Version 20.11">
|
||||
<list default="true" id="4d75e996-cee4-4ec6-b802-5b56d0c0eac4" name="Changes" comment="Version 23.11 (Grafics update)">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/GraphicsProgram.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/GraphicsProgram.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/Tracker.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Tracker.java" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@ -65,7 +66,7 @@
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1732108904989</updated>
|
||||
<workItem from="1732108906083" duration="758000" />
|
||||
<workItem from="1732113837570" duration="5187000" />
|
||||
<workItem from="1732113837570" duration="8726000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="First Commit Test">
|
||||
<option name="closed" value="true" />
|
||||
@ -83,7 +84,15 @@
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1732118799936</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="3" />
|
||||
<task id="LOCAL-00003" summary="Version 23.11 (Grafics update)">
|
||||
<option name="closed" value="true" />
|
||||
<created>1732368525825</created>
|
||||
<option name="number" value="00003" />
|
||||
<option name="presentableId" value="LOCAL-00003" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1732368525826</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="4" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
@ -103,6 +112,7 @@
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="First Commit Test" />
|
||||
<MESSAGE value="Version 20.11" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="Version 20.11" />
|
||||
<MESSAGE value="Version 23.11 (Grafics update)" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="Version 23.11 (Grafics update)" />
|
||||
</component>
|
||||
</project>
|
@ -10,7 +10,7 @@ public class GraphicsProgram extends PApplet {
|
||||
PImage imgRed;
|
||||
|
||||
public static void main(String[] args) {
|
||||
PApplet.main("Grafics");
|
||||
PApplet.main("GraficsProgram");
|
||||
}
|
||||
|
||||
public void settings() {
|
||||
|
@ -13,4 +13,48 @@ import java.util.LinkedList;
|
||||
import java.util.Queue;
|
||||
|
||||
public class Tracker {
|
||||
|
||||
private final int CAM = 0; // Kamera-ID (0 für Webcam, 1 für andere Cams)
|
||||
private final int EXP = -7; // Belichtungszeit (idealerweise: 0)
|
||||
private final int FPS = 60; // FPS
|
||||
|
||||
public Tracker(){
|
||||
|
||||
}
|
||||
|
||||
public static void main(String[] args){
|
||||
Tracker tracker = new Tracker();
|
||||
tracker.run();
|
||||
}
|
||||
|
||||
private void run(){
|
||||
VideoCapture capture = setUp();
|
||||
|
||||
if (!capture.isOpened()) {
|
||||
System.out.println("Fehler: Die Webcam konnte nicht geöffnet werden.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public int getX(){
|
||||
return x;
|
||||
}
|
||||
|
||||
public int getY(){
|
||||
return y;
|
||||
}
|
||||
|
||||
private VideoCapture setUp() {
|
||||
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
|
||||
VideoCapture capture = new VideoCapture(CAM);
|
||||
|
||||
if (!capture.isOpened()) {
|
||||
System.out.println("Fehler: Die Webcam konnte nicht geöffnet werden.");
|
||||
}
|
||||
|
||||
capture.set(Videoio.CAP_PROP_EXPOSURE, EXP);
|
||||
capture.set(Videoio.CAP_PROP_FPS, FPS);
|
||||
|
||||
return capture;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user