processing tag

54 questions


1 answers
101 views
0
collision determination in processing

This code in the open processing does not make sense.void bounce (Part a, Part b) {if(sqrt(power(a.posX-b.posX,2)+power(a.posY-b.posY,2))<(a.radius+b.radius)){ if(sqrt(power(a.posX-b.posX,2)+power(...

2 years ago

1 answers
96 views
0
Do you use the reserved word for interface Fn?

I created a interface named Fn, but now I have NoClassDefFoundError. interface Fn { void f();}class fn implements Fn { void f() {println(default);}}void setup() { fn_fn = new fn() { public void f() {p...

2 years ago

2 answers
92 views
0
I want to convert the output in word2vec in text mode to the output in binary mode in Python.

I have a text file that was printed when I vectorized word information in a C language program called word2vec.The output is from the else statement of the following code:for(a=0;a<vocab_size;a++){...


1 answers
76 views
0
How to Exit a Sub-Window When Displaying Multiple Windows in Processing 3

I am creating a game with processing 3, and I would like to create a program that opens the setting screen (B screen) from the main screen (A screen) in a separate window, closes the B screen, and ret...

2 years ago

1 answers
114 views
0
Every time you press the space key, do you want to toggle the size of the square to twice, once, twice, twice?

float x=400, y=100;int a = 20, b = 10;void setup() {size(800,200);}void draw() {rect(x-10, y-5, a, b);}void keyPressed() { intk = ';if(keyCode==RIGHT){x++;} else if(keyCode==LEFT){x--;} else if(keyCod...

2 years ago

1 answers
158 views
0
Pythorch designed Seq2seq, but only the same words are printed

I tried to proofread the text using Seq2seq at Pythorch, but Decoder prints only the same word.This is main.py.Doing this will give you training and more.#main.pyimport copyimport torchimport torch.nn...


1 answers
82 views
0
Multi-threaded, multi-process design on servers with data communication and database write

Preface: I'm sorry if I wrote something wrong or off the mark due to my lack of knowledge.What I don't know: Optimal design using multi-threaded (multi-process) server applicationsProgram you want to ...


2 answers
100 views
0
Static image file format for uncompressed HDR (High Dynamic Range) images

Look for static image file formats that can store HDR (High Dynamic Range) images uncompressed.I think HEIF and JPEG-HDR can store HDR, but I think these are irreversible compression files.I think the...

2 years ago

2 answers
92 views
0
If you display the image with point() in Processing and then display it again, the afterimage of the previous image will remain.

The arduino with the camera sent me information about the image, and I wrote a processing program to display it with point(), but after I completely display the image, if I display the image again, th...

2 years ago

1 answers
162 views
0
Learn more about additional Word2vec learning.

Ask about additional Word2Vec learning.If we learn a corpus once, generate a vector, and then add an unknown word to the corpus, do we need to relearn the corpus from scratch to vectorize the unknown ...

« - 3 - »

© 2024 OneMinuteCode. All rights reserved.