Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 0
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
New to this Portal?
Click on Join Now to Sign Up
Join Now
Help
Feedback
Sign In
Processing Forum
Recent Topics
All Forums
Search All
Tags
Author
Advanced Search
Search
New Topic
Screen name:
blellum
blellum's Profile
1
Posts
2
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
Mirroring a webcam in a sketch
[5Replies]
31-Mar-2011 08:06 AM
Forum:
Core Library Questions
We have a few sketches where we want to mirror the webcam - but we are using blend within the sketch, and any mirroring:
// flip image horizonatlly
pushMatrix();
scale(-1,1);
popMatrix();
Doesn't work when we are using blend() to manipulate the live feed - any ideas?
I looked at using an .java file for the capture (from you einstein sketch) - could I run the mirror function in mycapture.java, and if so how?
This is from the gwoptics file which I wish to adapt:
import processing.core.PImage;
import processing.core.PApplet;
import processing.core.PConstants;
import processing.video.*;
public class mycapture {
private Capture cam;
private int _w;
private int _h;
private PImage _img;
public mycapture (PApplet pa, int w, int h) {
_w=w;
_h=h;
cam=new Capture(pa,_w,_h);
}
public PImage get_image(){
cam.read();
PImage tmp=cam.get();
//tmp.filter(PApplet.GRAY);
return tmp;
}
public void stop() {
cam.stop();
}
}
«Prev
Next »
Moderate user : blellum
Forum