Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
denino
About Me:
A Beginner D=
denino's Profile
6
Posts
4
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Changing size
[2 Replies]
21-Sep-2012 06:26 AM
Forum:
Contributed Library Questions
Hello,
I wanted to ask:
Can I change the size of the display window?
At the beginning of the sketch I said size(500,700),
but later I want to change it with a function.
It has to change when the window appears (after I clicked "run" the size is maybe 500x700 or 1500x700),
not when the program is running (after I clicked "run" it's 500x700, after a while it's 1500x700).
Hopefully understood me..
Denino
[Deutsch] String-Array Frage
[4 Replies]
17-Sep-2012 08:34 AM
Forum:
Programming Questions
Hallo,
eigentlich ist mein Vorhaben ganz simple.
Ich möchte untereinander Wörter platzieren
wie in einer Liste, das egal, wann ich will.
Momentan sieht es so aus:
String[] stelle = new String[30];
void setup() {
size(200,650);
stelle[5]= "hallo";
for (int i =0; i< stelle.length; i++) {
text(stelle[5], 20, (i+1)*20);
}
}
Da stehen jetzt natürlich 30 "hallo"s untereinander.
Aber ich will nur an stelle[5] ein hallo.
Wenn ich in der 3.letzten Zeile aber "stelle[i]"
schreibe, gibt es ein NullPointerException.
Darum hab ich einfach mal geschaut, ob das mit
zweidimensionalen Arrays klappt:
String[] [] stelle = new String[0] [30];
void setup() {
size(200, 650);
stelle[0][5]= "hallo";
for (int i =0; i< stelle.length; i++) {
text(stelle[1] [i], 20, (i+1)*20);
}
}
Dann kommt ArrayIndexOutOfBoundsException: 0..
wahrscheinlich, weil die Syntax auch einfach falsch ist.
Sorry, bin immer noch totaler Noob, wäre schön,
wenn ihr mir weiterhelft =)
LG
Denino
German Question about OpenCV
[1 Reply]
29-Jan-2012 02:17 AM
Forum:
Contributed Library Questions
Hallöchen,
ich suche jetzt mal nach deutschen Antworten, weil mich das auf Englisch
manchmal alles ziemlich verwirrt. Also folgendes: Ich hab mir auf
meinem Mac OpenCV installiert, da ich mit Face Detection was
machen will. Sobald das Gesicht mit der einen Kamera erkannt
wird, soll die andere Kamera angeschaltet werden. Scheinbar wählt
Mac mit dem Face Detection Code nur die erste Kamera aus, die man
mit dem Mac verbindet (Capture?..). Jedenfalls bräuchte ich eure
Hilfe, damit ich irgendwie von der einen Kamera zur anderen switchen
kann.
Zudem ist es auch irgendwie wichtig, dass wenn man Face Detection
ausführt, dass man da dann die Kamera nicht sehen kann, die das
eigene Gesicht erkennt. Oder muss das so sein?
Es geht nämlich in meinem Projekt darum, dass man das eigene Gesicht
in eine Box steckt (worin sich ein Bildschirm befindet), dort zunächst nichts sieht (nur schwarz)
und sobald die Kamera, die sich darin befindet, das Gesicht erkennt, wird eine andere Kamera
angeschaltet und man sieht dann das, was damit aufgenommen wird.
Liebe Grüße
Denino
Connecting with a camera
[2 Replies]
19-Jan-2012 11:22 AM
Forum:
General Discussion
Hello everyone,
the next question:
I made a simple programm, where I use
Open CV on Mac. With face detection I want
to start my extern camera (witch is connected
via Mini-USB) when the programm see my face.
So now I've the question, how can I connect
processing with the camera? I have to install
a driver for the camera, have I? And then,
I have to use it.. or the path or..
Maybe you can help me!
THX
Help
[3 Replies]
09-Jan-2012 05:01 AM
Forum:
General Discussion
Hello everyone!
Can someone help me with a little introduction in processing?
I don't understand something..
And I'm from Germany, maybe there's someone who speeks german
here and can help me.
I have to make a little programm for a course and it's simple,
BUT I don't really understand this.
So, maybe we can share e-mailaddress and contact.
Thanks!
Denino
Segments
[3 Replies]
08-Jan-2012 02:41 AM
Forum:
Programming Questions
Hello Guys,
I'm a beginner and I've to program a navigation or a platform for a course..
So my first question is, how can I separate the window in two areas?
It's like this:
// Grundfläche
boolean halten = false;
void setup() {
size (1100,650);
background(255);
stroke(255);
}
//Bereich zum Zeichnen.. wie eingrenzen?
void draw() {
rect(1,1,549,649);
stroke(0);
if(halten){
line(pmouseX,pmouseY,mouseX,mouseY);
}
}
void mousePressed(){
halten = true;
}
void mouseReleased(){
halten=false;
}
The right area is for drawing and the left for a platform, where you can click buttons and
find informations. So in the right you can test the informations from the left side.
But I don't know HOW =(
The code up there is just for representation and visualization of my idea.
Hope you can help me.
«Prev
Next »
Moderate user : denino
Forum