MARC
YaBB Newbies
Offline
Posts: 1
Jmyron resolution question
Jun 14th , 2007, 5:16pm
i know many people have/had this problem and it has been posted several times, but there have been no real answers or solutions. Jmyron is a pretty fast and easy tracking software. But i can`t get over the resolution of 320x240 with my webcam. I tried several ways, but always got an error. Most times the image got duplicated and the picture looked really ugly. Here is the Code: (This should be a way to blow it up, but there is always an error /////////////////////////////////////////////// import JMyron.*; JMyron m;//a camera object void setup(){ size(320*2,240*2); m = new JMyron();//make a new instance of the object m.start(320,240);//start a capture at 320x240 m.trackColor(0,0,255,200);//R, G, B, and range of similarity m.minDensity(1); //minimum pixels in the glob required to result in a box println("Myron " + m.version()); noFill(); } void draw(){ m.update();//update the camera view drawCamera();//draw the camera to the screen int[][] b = m.globBoxes();//get the center points //draw the boxes stroke(255,0,0); for(int i=0;i<b.length;i++){ rect( b[i][0]*2 , b[i][1] , b[i][2] , b[i][3] ); } } void drawCamera(){ int[] img = m.image(); //get the normal image of the camera loadPixels(); for(int i=0;i<width*height;i++){ //loop through all the pixels pixels[i] = img[i]; //draw each pixel to the screen } updatePixels(); } void mousePressed(){ m.settings();//click the window to get the settings } public void stop(){ m.stop();//stop the object super.stop(); } /////////////////////////////////////////////////////// And here is da error that appears: # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x03241830, pid=3084, tid=4012 # # Java VM: Java HotSpot(TM) Client VM (1.4.2_10-b03 mixed mode) # Problematic frame: # C [myron_ezcam.dll+0x1830] # ////////////////////// ////////////////////// Has Anybody a idea how to get a bigger resolution??? Thanks for every comment. greetings marc