Devam Ediyor

Export Processing sketch to Java app

I have a Processing sketch which works great on my system but I cannot successfully export to Java application for PC and Mac.

I need someone familiar with exporting from Processing -- and with Java imports and jars -- to help me export to a distributable app.

The sketch follows FOR REFERENCE ONLY. This is sufficient to understand the project but NOT to complete it. You'll need, at minimum, a couple of jars from com.google.zxing.

import processing.video.*;

import com.google.zxing.*;

import [url removed, login to view];

import ddf.minim.*;

Minim minim;

AudioSnippet player;

Capture cam; // declare the capture object

[url removed, login to view] reader = new [url removed, login to view]();

int WIDTH = 400;

int HEIGHT = 400;

void setup() {

size(400, 400);

minim = new Minim(this);

player = [url removed, login to view]("[url removed, login to view]");

String[] cameras = [url removed, login to view]();

if ([url removed, login to view] == 0) {

// println("There are no cameras available for capture.");

exit();

} else {

// println("Available cameras:");

for (int i = 0; i < [url removed, login to view]; i++) {

// println(cameras[i]);

}

// cam = new Capture(this, WIDTH, HEIGHT); // hmmm...

cam = new Capture(this, cameras[0]);

[url removed, login to view]();

}

}

void draw() {

if ([url removed, login to view]() == true) {

[url removed, login to view]();

image(cam, 0,0);

stroke(255);

line( 80, 80,120, 80); line( 80, 80, 80,120);

line(280, 80,320, 80); line(320, 80,320,120);

line( 80,280, 80,320); line( 80,320,120,320);

line(320,280,320,320); line(280,320,320,320);

try {

//Create a bufferedimage

BufferedImage buf = new BufferedImage(WIDTH,HEIGHT, 1); // last arg (1) is the same as TYPE_INT_RGB

[url removed, login to view]().drawImage([url removed, login to view](),0,0,null);

// test to see if image contains a QR code

LuminanceSource source = new BufferedImageLuminanceSource((BufferedImage)[url removed, login to view]());

BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));

Result result = [url removed, login to view](bitmap);

// if result, we can do some display

if ([url removed, login to view]() != null) {

[url removed, login to view]();

[url removed, login to view]();

open([url removed, login to view]()); // Note: open() not supported in JS mode

delay(2000); // delay to avoid multiple reads of same image

}

} catch (Exception e) {

// println([url removed, login to view]());

}

}

}

Beceriler: Java

Daha fazlasını görün: java processing sketch, processing export app, processing export, processing mac export, export processing java, exporting minim java, export java processing, import java processing, processing export application mac, java ddf minim, processing export application, processing sketch, string source code java, int size, int i, help java code, cam import, line processing, video processing, SKETCH, sketch we, sketch to, sketch application, reader qr, java play

İşveren Hakkında:
( 29 değerlendirme ) Denver-area, United States

Proje NO: #4415321

Seçilen:

charlse

I have much experience on Java, I will give you a quality job. Best regards.

2 gün içinde 30$ USD
(0 Değerlendirme)
0.0

5 freelancer bu iş için ortalamada 75$ teklif veriyor

eperfections

I can help you in making a distributable. Please provide complete code with jars.

1 gün içinde 65$ USD
(274 Değerlendirme)
7.0
dobreiiita

Hi, I can help you with this project, Please share current project which is running fine on your system.

in 2 gün içinde99$ USD
(170 Değerlendirme)
6.4
sysnajar

Hi there, Good to see processing dev here. I'm passionate about processing my own project is also developed using processing (SimpleOpenNI) . Thanks for considering my bid, Owat

in 2 gün içinde105$ USD
(10 Değerlendirme)
4.9
seenupsvy

Yes , Let's make a deal...

in 2 gün içinde75$ USD
(0 Değerlendirme)
0.0