# Libraries

**URL:** https://discourse.processing.org/c/processing/processing-libraries/19.md?page=10

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 11

---

## [Problem with send hex data from TCP/IP](https://discourse.processing.org/t/problem-with-send-hex-data-from-tcp-ip/36747)

<div class="topic-metadata">

**Author:** [@demoss](https://discourse.processing.org/u/demoss)\
**Replies:** 6\
**Last updated:** [May 4, 2023, 3:09am UTC](https://discourse.processing.org/t/problem-with-send-hex-data-from-tcp-ip/36747 "2023-05-04T03:09:11Z")

</div>

Hi all there! Can you help me please understand how i can send the hex data pattern to remote device ip ike 10.0.255.182 and port 8234? i try use that code import processing.net.\*; Client c1; byte\[\] dataIn ={}; int fla…

---

## [Unable to show video image using OpenCV](https://discourse.processing.org/t/unable-to-show-video-image-using-opencv/41833)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 9:47am UTC](https://discourse.processing.org/t/unable-to-show-video-image-using-opencv/41833 "2023-04-26T09:47:11Z")

</div>

hi forum i am trying to display image video and want to pass it to opencv for image processing but the image wont show up. thabk you for help import processing.video.\*; import java.awt.\*; import gab.opencv.\*; OpenCV …

---

## [The MidiBus Crashing](https://discourse.processing.org/t/the-midibus-crashing/39537)

<div class="topic-metadata">

**Author:** [@Ducky](https://discourse.processing.org/u/Ducky)\
**Replies:** 10\
**Last updated:** [April 25, 2023, 1:34pm UTC](https://discourse.processing.org/t/the-midibus-crashing/39537 "2023-04-25T13:34:39Z")

</div>

Hi everyone! I’ve recently been working on assignment and have come to a issue that stumps me completely. If I call upon end() when trying to run code with a MidiBus using the library ‘The MidiBus’ ,the sketch crashes …

---

## [How can I count white pixels of an image?](https://discourse.processing.org/t/how-can-i-count-white-pixels-of-an-image/41787)

<div class="topic-metadata">

**Author:** [@bouu28](https://discourse.processing.org/u/bouu28)\
**Replies:** 9\
**Last updated:** [April 23, 2023, 3:46pm UTC](https://discourse.processing.org/t/how-can-i-count-white-pixels-of-an-image/41787 "2023-04-23T15:46:03Z")

</div>

Hey! So i have this assignement where i need to create a binary image of what my computer camera catches and when i have more than 100 white pixels it should appear a message saying motion detected. The problem is I don’…

---

## [Processing library same function as numpy](https://discourse.processing.org/t/processing-library-same-function-as-numpy/41747)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 4\
**Last updated:** [April 18, 2023, 10:39am UTC](https://discourse.processing.org/t/processing-library-same-function-as-numpy/41747 "2023-04-18T10:39:23Z")

</div>

does processing has library which is same as numpy. thank you

---

## [\[hypermedia - JAVA UDP\] UDP - Please advise. Communicate with PHP(UDP socket communication). Why?](https://discourse.processing.org/t/hypermedia-java-udp-udp-please-advise-communicate-with-php-udp-socket-communication-why/41748)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [April 18, 2023, 4:59am UTC](https://discourse.processing.org/t/hypermedia-java-udp-udp-please-advise-communicate-with-php-udp-socket-communication-why/41748 "2023-04-18T04:59:53Z")

</div>

Reference library: udp (hypermedia) ‘Processing UDP library’ & php socket communication Each source code. ‘processing java mode’ import hypermedia.net.\*; UDP udp; void setup() { size( 255, 255 ); backgr…

---

## [Capture cam fail / Video library issue](https://discourse.processing.org/t/capture-cam-fail-video-library-issue/26506)

<div class="topic-metadata">

**Author:** [@sprotz9](https://discourse.processing.org/u/sprotz9)\
**Replies:** 7\
**Last updated:** [April 18, 2023, 2:55am UTC](https://discourse.processing.org/t/capture-cam-fail-video-library-issue/26506 "2023-04-18T02:55:19Z")

</div>

live camera capture works maybe 1 out of every 20 times i click to run the sketch (see simple example code below). otherwise, the feed freezes on a gray screen with spinning wheel and the following error message in the c…

---

## [List of cameras available but none accessible](https://discourse.processing.org/t/list-of-cameras-available-but-none-accessible/41721)

<div class="topic-metadata">

**Author:** [@loom](https://discourse.processing.org/u/loom)\
**Replies:** 2\
**Last updated:** [April 16, 2023, 1:11pm UTC](https://discourse.processing.org/t/list-of-cameras-available-but-none-accessible/41721 "2023-04-16T13:11:13Z")

</div>

Hi there! I’m trying to run a code that needs to use a camera using the processing.video library but would give me errors. After some trial and error, I found that processing is able to list out the cameras that are con…

---

## [Creating an equalizer in Processing 4 (preferably using the Minim library)](https://discourse.processing.org/t/creating-an-equalizer-in-processing-4-preferably-using-the-minim-library/41735)

<div class="topic-metadata">

**Author:** [@TT3overnot](https://discourse.processing.org/u/TT3overnot)\
**Replies:** 1\
**Last updated:** [April 16, 2023, 1:52pm UTC](https://discourse.processing.org/t/creating-an-equalizer-in-processing-4-preferably-using-the-minim-library/41735 "2023-04-16T13:52:13Z")

</div>

I recently started work on a simple music player in processing using the minim library. The program is almost ready just one thing left, equalization. Put simpler I am trying to play certain frequencies louder than other…

---

## [Preserving Stroke Color in PGS Library when subtracting Shapes](https://discourse.processing.org/t/preserving-stroke-color-in-pgs-library-when-subtracting-shapes/41612)

<div class="topic-metadata">

**Author:** [@hotti](https://discourse.processing.org/u/hotti)\
**Replies:** 2\
**Last updated:** [April 14, 2023, 4:31am UTC](https://discourse.processing.org/t/preserving-stroke-color-in-pgs-library-when-subtracting-shapes/41612 "2023-04-14T04:31:40Z")

</div>

Hello everyone, I have a question about using the Processing Geometry Suite (PGS) library. I’m working on a code that subtracts a ‘circleShape’ from a collection of lines called ‘lines’. When generating the ‘lines’, I…

---

## [Debayering images from cameras](https://discourse.processing.org/t/debayering-images-from-cameras/41520)

<div class="topic-metadata">

**Author:** [@animalfrommars](https://discourse.processing.org/u/animalfrommars)\
**Replies:** 2\
**Last updated:** [April 12, 2023, 3:52pm UTC](https://discourse.processing.org/t/debayering-images-from-cameras/41520 "2023-04-12T15:52:29Z")

</div>

Hello, I’ve got to cameras from “Imaging Source”. I’ve just resolved the problem of connection but i receive raw images and need to Debayer it but don’t know how to do that… I’ have also a problem with the video Libra…

---

## [addMouseWheelListener not recognized in MapThing example](https://discourse.processing.org/t/addmousewheellistener-not-recognized-in-mapthing-example/41662)

<div class="topic-metadata">

**Author:** [@mikLomba](https://discourse.processing.org/u/mikLomba)\
**Replies:** 6\
**Last updated:** [April 9, 2023, 8:51pm UTC](https://discourse.processing.org/t/addmousewheellistener-not-recognized-in-mapthing-example/41662 "2023-04-09T20:51:31Z")

</div>

I installed the MapThing library. When i try to run the example i get the error “addMouseWheelListener dindn’t exist”. This occurs both using processing 3 or 4 and on different PC. What’s wrong ?

---

## [Flat bed scanner image input to Processing](https://discourse.processing.org/t/flat-bed-scanner-image-input-to-processing/41663)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 0\
**Last updated:** [April 9, 2023, 4:46pm UTC](https://discourse.processing.org/t/flat-bed-scanner-image-input-to-processing/41663 "2023-04-09T16:46:22Z")

</div>

Has anyone found a lib or way to communicate with a usb flatbed scanner to scan and input images for processing program directly? I don’t want to use a different app to scan the images, I want to scan them with processi…

---

## [SelectInput() fails](https://discourse.processing.org/t/selectinput-fails/38735)

<div class="topic-metadata">

**Author:** [@blippr](https://discourse.processing.org/u/blippr)\
**Replies:** 14\
**Last updated:** [April 5, 2023, 5:15pm UTC](https://discourse.processing.org/t/selectinput-fails/38735 "2023-04-05T17:15:53Z")

</div>

Hi, I get this error message in the console: The method selectInput(String, String) in the type PApplet is not applicable for the arguments (String) when trying to run this script: import java.awt.datatransfer.\*; i…

---

## [Processing Video Example -- Background Subtraction](https://discourse.processing.org/t/processing-video-example-background-subtraction/26634)

<div class="topic-metadata">

**Author:** [@alenmartel](https://discourse.processing.org/u/alenmartel)\
**Replies:** 3\
**Last updated:** [April 4, 2023, 11:35am UTC](https://discourse.processing.org/t/processing-video-example-background-subtraction/26634 "2023-04-04T11:35:09Z")

</div>

Hi all – I’ve been playing around with the BackgroundSubtraction example by Golan Levin in the Processing Video examples and have gotten comfortable with manipulating most aspects of the code in relationship to the image…

---

## [Reducing latency when capturing and displaying an RTSP stream](https://discourse.processing.org/t/reducing-latency-when-capturing-and-displaying-an-rtsp-stream/26531)

<div class="topic-metadata">

**Author:** [@angelofarina](https://discourse.processing.org/u/angelofarina)\
**Replies:** 6\
**Last updated:** [April 4, 2023, 4:29am UTC](https://discourse.processing.org/t/reducing-latency-when-capturing-and-displaying-an-rtsp-stream/26531 "2023-04-04T04:29:19Z")

</div>

I am trying to display the video being streamed by an IP camera through the RTSP protocol. After finding many outdated examples (which did rely on the old codeanticode.GSvideo library, which is not available for Proces…

---

## [With G4P Click Checkbox also triggers mouseClicked](https://discourse.processing.org/t/with-g4p-click-checkbox-also-triggers-mouseclicked/41559)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 2\
**Last updated:** [April 1, 2023, 7:45pm UTC](https://discourse.processing.org/t/with-g4p-click-checkbox-also-triggers-mouseclicked/41559 "2023-04-01T19:45:38Z")

</div>

With a G4P Checkbox when I click on it, the Processing mouseClicked() runs as well. In other environments where I’ve coded, the front-most window gets the click and doesn’t arrive on the ones behind. I’m finding myself…

---

## [Gamecontrolplus Slider Value](https://discourse.processing.org/t/gamecontrolplus-slider-value/41545)

<div class="topic-metadata">

**Author:** [@pacolux](https://discourse.processing.org/u/pacolux)\
**Replies:** 2\
**Last updated:** [March 31, 2023, 6:25pm UTC](https://discourse.processing.org/t/gamecontrolplus-slider-value/41545 "2023-03-31T18:25:46Z")

</div>

Working with XBox controller and noticed the slider output maxes at about a third of the movement range of the stick no matter what I put in the multiplier/tolerance. Is this the incompatibility with newer devices that …

---

## [Numeric Recognition Program Project](https://discourse.processing.org/t/numeric-recognition-program-project/41542)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [March 31, 2023, 11:17am UTC](https://discourse.processing.org/t/numeric-recognition-program-project/41542 "2023-03-31T11:17:56Z")

</div>

Numeric Recognition Program Project Get camera data. Remove as much external background as possible through a filter. Recognize through OCR. This is what we are doing now. However, now it is a form that …

---

## [Does Processing have something that is similar to Unity FixedUpdate](https://discourse.processing.org/t/does-processing-have-something-that-is-similar-to-unity-fixedupdate/41302)

<div class="topic-metadata">

**Author:** [@psamead](https://discourse.processing.org/u/psamead)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 6:08pm UTC](https://discourse.processing.org/t/does-processing-have-something-that-is-similar-to-unity-fixedupdate/41302 "2023-03-29T18:08:33Z")

</div>

Hi my friends, I am trying to follow Daniel’s Chaos Game and adding a P5 control to control values on runtime. But it seems I have to move some setups to the draw part, because codes in setup part only update once befor…

---

## [Can't figure out why reading G4P combo text value in IF statement doesn't work](https://discourse.processing.org/t/cant-figure-out-why-reading-g4p-combo-text-value-in-if-statement-doesnt-work/41480)

<div class="topic-metadata">

**Author:** [@hondaman900](https://discourse.processing.org/u/hondaman900)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 9:13pm UTC](https://discourse.processing.org/t/cant-figure-out-why-reading-g4p-combo-text-value-in-if-statement-doesnt-work/41480 "2023-03-27T21:13:38Z")

</div>

I’m maintaining a legacy P1.5 app. It works fine, and this question relates to code logic and why code that looks correct isn’t functioning as excepted. My user selects a font from a drop-down list, and the font on-scre…

---

## [SoundFile the wrong sampleRate](https://discourse.processing.org/t/soundfile-the-wrong-samplerate/26660)

<div class="topic-metadata">

**Author:** [@RFullum](https://discourse.processing.org/u/RFullum)\
**Replies:** 1\
**Last updated:** [March 26, 2023, 5:38pm UTC](https://discourse.processing.org/t/soundfile-the-wrong-samplerate/26660 "2023-03-26T17:38:53Z")

</div>

Does Processing only load audio files at 44.1KHz? I have an mp3 at 48KHz loaded to my sketch. I set the Sound object to 48KHz. My sound card is at 48KHz. But the file is loading at 44.1 and the slow playback confirms. i…

---

## [Unable to download ControlP5: Processing 3.5.4](https://discourse.processing.org/t/unable-to-download-controlp5-processing-3-5-4/41446)

<div class="topic-metadata">

**Author:** [@BilalAteeq](https://discourse.processing.org/u/BilalAteeq)\
**Replies:** 2\
**Last updated:** [March 26, 2023, 7:14am UTC](https://discourse.processing.org/t/unable-to-download-controlp5-processing-3-5-4/41446 "2023-03-26T07:14:36Z")

</div>

I am a newcomer to processing, and I need to download a library, the library is controlp5, when I click install on the library, it says “error downloading and installing controlp5”, but when I try to install other librar…

---

## [Capture Library Changes](https://discourse.processing.org/t/capture-library-changes/41381)

<div class="topic-metadata">

**Author:** [@crashnorun](https://discourse.processing.org/u/crashnorun)\
**Replies:** 0\
**Last updated:** [March 21, 2023, 12:48pm UTC](https://discourse.processing.org/t/capture-library-changes/41381 "2023-03-21T12:48:58Z")

</div>

I’m revisiting some of my old work and came to realize there were some changes to the new Capture library that left out some of the old features. In the past I was able to start a capture and save the image to a file wi…

---

## [Capture.list() with video library 2.0 does not enumerate all camera configuration of each camera, just the unique camera names](https://discourse.processing.org/t/capture-list-with-video-library-2-0-does-not-enumerate-all-camera-configuration-of-each-camera-just-the-unique-camera-names/27786)

<div class="topic-metadata">

**Author:** [@Anestis](https://discourse.processing.org/u/Anestis)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 9:00pm UTC](https://discourse.processing.org/t/capture-list-with-video-library-2-0-does-not-enumerate-all-camera-configuration-of-each-camera-just-the-unique-camera-names/27786 "2023-03-20T21:00:24Z")

</div>

Capture.list() with video library 2.0 does not enumerate all camera configurations of each camera, just the unique camera names. That means that it is not possible to search for a specific configuration and then initiali…

---

## [Sketch crashing: IllegalStateException](https://discourse.processing.org/t/sketch-crashing-illegalstateexception/41337)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 4:07pm UTC](https://discourse.processing.org/t/sketch-crashing-illegalstateexception/41337 "2023-03-20T16:07:49Z")

</div>

Dear All, I’m getting the following and don’t understand at all what’s happening - I think it is to do with try to play back several videos? From the console Mar 17, 2023 11:07:14 PM com.sun.jna.Native$1 uncaughtExcep…

---

## [Text wont draw in setup()](https://discourse.processing.org/t/text-wont-draw-in-setup/41359)

<div class="topic-metadata">

**Author:** [@starzorrow](https://discourse.processing.org/u/starzorrow)\
**Replies:** 6\
**Last updated:** [March 20, 2023, 2:55pm UTC](https://discourse.processing.org/t/text-wont-draw-in-setup/41359 "2023-03-20T14:55:53Z")

</div>

okay so i have this code and im trying to draw text() in setup() right before i load and play a sound file. the problem is, the text does not draw until after the sound has loaded. if the sound code is commented out, the…

---

## [Class path contains multiple SLF4J bindings](https://discourse.processing.org/t/class-path-contains-multiple-slf4j-bindings/41332)

<div class="topic-metadata">

**Author:** [@th75](https://discourse.processing.org/u/th75)\
**Replies:** 0\
**Last updated:** [March 16, 2023, 10:39pm UTC](https://discourse.processing.org/t/class-path-contains-multiple-slf4j-bindings/41332 "2023-03-16T22:39:50Z")

</div>

Hi, I use external libraries for a sketch, selenium and sikulixide, it looks both come with a slf4j logger i can use each library individually in a sketch but when i import both in the same sketch, i got warnings abou…

---

## [How to use JavaFX in Processing 4?](https://discourse.processing.org/t/how-to-use-javafx-in-processing-4/35842)

<div class="topic-metadata">

**Author:** [@lui\_s](https://discourse.processing.org/u/lui_s)\
**Replies:** 7\
**Last updated:** [March 15, 2023, 8:53am UTC](https://discourse.processing.org/t/how-to-use-javafx-in-processing-4/35842 "2023-03-15T08:53:13Z")

</div>

Possibly a dumb question but I can’t seem to figure it out on my own. Hopefully someone here can help me out. Below is a simple code that works fine in Processing 3. Basically it just imports a JavaFX class. In Processi…

---

## [Laggy fullScreen](https://discourse.processing.org/t/laggy-fullscreen/41265)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 0\
**Last updated:** [March 13, 2023, 4:15pm UTC](https://discourse.processing.org/t/laggy-fullscreen/41265 "2023-03-13T16:15:28Z")

</div>

Hi All, I have a sketch that runs smoothly when windowed on my Macbook, but then slows noticeably when I make it fullScreen - either on the Macbook monitor itself, or on a second monitor - even when the sketch runs at …

[Previous page](https://discourse.processing.org/c/processing/processing-libraries/19.md?page=9)

[Next page](https://discourse.processing.org/c/processing/processing-libraries/19.md?page=11)
