# Libraries

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

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

**Page:** 15

---

## [I have a question regarding OCR](https://discourse.processing.org/t/i-have-a-question-regarding-ocr/39466)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [October 29, 2022, 12:08am UTC](https://discourse.processing.org/t/i-have-a-question-regarding-ocr/39466 "2022-10-29T00:08:33Z")

</div>

http://www.magicandlove.com/blog/2015/11/26/processing-with-ocr/ The version I’m using: tess4j-3.4.8.jar import net.sourceforge.tess4j.\*; import java.awt.image.BufferedImage; Tesseract ocr; BufferedImage img; PImage …

---

## [Open Kinect for Processing Cannot find Kinect](https://discourse.processing.org/t/open-kinect-for-processing-cannot-find-kinect/1076)

<div class="topic-metadata">

**Author:** [@matteocabe](https://discourse.processing.org/u/matteocabe)\
**Replies:** 4\
**Last updated:** [October 27, 2022, 8:15pm UTC](https://discourse.processing.org/t/open-kinect-for-processing-cannot-find-kinect/1076 "2022-10-27T20:15:50Z")

</div>

Hello there, I’m trying to use kinect in Processing using Shifmann’s libraries, I have installed Kinect SDK and the libusbk with Zadig. When I start a simple program in processing it says “cannot find devices” Can som…

---

## [Where can I download Processing 3? Need to use the Handy library](https://discourse.processing.org/t/where-can-i-download-processing-3-need-to-use-the-handy-library/39461)

<div class="topic-metadata">

**Author:** [@mi23](https://discourse.processing.org/u/mi23)\
**Replies:** 1\
**Last updated:** [October 27, 2022, 7:04pm UTC](https://discourse.processing.org/t/where-can-i-download-processing-3-need-to-use-the-handy-library/39461 "2022-10-27T19:04:43Z")

</div>

Hi. I want to use the Handy library but it is not compatible with Processing 4. Thanks!

---

## [Apps using G4P on macOS sometimes miss mouse clicks](https://discourse.processing.org/t/apps-using-g4p-on-macos-sometimes-miss-mouse-clicks/38327)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 13\
**Last updated:** [October 26, 2022, 6:27pm UTC](https://discourse.processing.org/t/apps-using-g4p-on-macos-sometimes-miss-mouse-clicks/38327 "2022-10-26T18:27:01Z")

</div>

I have a built couple of apps using G4P to create a GUI that run on Windows and also on macOS. When on the macOS I sometimes have to click a button several times before the app responds. It might be trying to choose an o…

---

## [Svg created have no proper path](https://discourse.processing.org/t/svg-created-have-no-proper-path/39412)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 1\
**Last updated:** [October 25, 2022, 12:00pm UTC](https://discourse.processing.org/t/svg-created-have-no-proper-path/39412 "2022-10-25T12:00:14Z")

</div>

Hi, I’m trying to create a proper path from shapes. I would like to use the svg as path for my pen plotter (here Axidraw). The svg file opened in inkscape made has a deepness and is doubled for every line. How can I s…

---

## [OpenCV error in Processing 4.0b2](https://discourse.processing.org/t/opencv-error-in-processing-4-0b2/33284)

<div class="topic-metadata">

**Author:** [@Dazzid](https://discourse.processing.org/u/Dazzid)\
**Replies:** 12\
**Last updated:** [October 24, 2022, 4:38pm UTC](https://discourse.processing.org/t/opencv-error-in-processing-4-0b2/33284 "2022-10-24T16:38:58Z")

</div>

I’m preparing a workshop using Processing 4.02b, but OpenCV library seems to have an issue with permissions. WARNING: Illegal reflective access by gab.opencv.OpenCV (file:/Users/Name/Documents/Processing/libraries/open…

---

## [\[JAVA opencv library\] Have you tried the 'WhichFace' example?](https://discourse.processing.org/t/java-opencv-library-have-you-tried-the-whichface-example/39407)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [October 24, 2022, 4:28am UTC](https://discourse.processing.org/t/java-opencv-library-have-you-tried-the-whichface-example/39407 "2022-10-24T04:28:12Z")

</div>

\[JAVA opencv library\] Have you tried the ‘WhichFace’ example? hello. If anyone knows, please reply, thank you. \[Explanation\] In the ‘OpenCV’ library folder/example folder, there is a ‘WhichFace.pde’ file. It r…

---

## [controlP5 Slider and Buttons as arrays](https://discourse.processing.org/t/controlp5-slider-and-buttons-as-arrays/39405)

<div class="topic-metadata">

**Author:** [@andy](https://discourse.processing.org/u/andy)\
**Replies:** 1\
**Last updated:** [October 23, 2022, 11:24pm UTC](https://discourse.processing.org/t/controlp5-slider-and-buttons-as-arrays/39405 "2022-10-23T23:24:19Z")

</div>

Using controlP5, I need to create 40 sliders and 40 buttons, I use to use Delphi and could create an array of scrollbars with associated buttons. Can I do the same with processing, if so, can anyone could shed some ligh…

---

## [Video Crashes with JNA: could not detach thread](https://discourse.processing.org/t/video-crashes-with-jna-could-not-detach-thread/14889)

<div class="topic-metadata">

**Author:** [@NilsK](https://discourse.processing.org/u/NilsK)\
**Replies:** 11\
**Last updated:** [October 23, 2022, 7:08am UTC](https://discourse.processing.org/t/video-crashes-with-jna-could-not-detach-thread/14889 "2022-10-23T07:08:36Z")

</div>

Hello together, I’ve recently started using the video functions of processing for a uni project. Sadly I seem to run into the mentioned error on all maschines I’m working on. Even with the most basic version on the pla…

---

## [How to iterate video.pixels.length for random area of image](https://discourse.processing.org/t/how-to-iterate-video-pixels-length-for-random-area-of-image/39367)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 31\
**Last updated:** [October 21, 2022, 11:43pm UTC](https://discourse.processing.org/t/how-to-iterate-video-pixels-length-for-random-area-of-image/39367 "2022-10-21T23:43:47Z")

</div>

assume the image as following top left, rectangular with 4 columns and 5 rows how do i iterate within for loop for yellow rectangular (1,2,5,6,9,10,13,14) to fetch rgb values if my array is 1D (bellow rectangular) wi…

---

## [\[JAVA\] Is there no 'scroll function' library?](https://discourse.processing.org/t/java-is-there-no-scroll-function-library/39296)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 5\
**Last updated:** [October 20, 2022, 11:42pm UTC](https://discourse.processing.org/t/java-is-there-no-scroll-function-library/39296 "2022-10-20T23:42:36Z")

</div>

\[JAVA\] Is there no ‘scroll function’ library? hello. Thanks for clicking on my article. As an example, I upload a picture (program picture). As shown in the figure, you can view or input multiple data through ‘scro…

---

## [Capture doesn't work ! (mac M1)](https://discourse.processing.org/t/capture-doesnt-work-mac-m1/38781)

<div class="topic-metadata">

**Author:** [@ledondodo](https://discourse.processing.org/u/ledondodo)\
**Replies:** 5\
**Last updated:** [October 19, 2022, 6:20pm UTC](https://discourse.processing.org/t/capture-doesnt-work-mac-m1/38781 "2022-10-19T18:20:06Z")

</div>

Hello, I’m trying to use my camera with Capture for the first time and I got some issues… I’m on a MacBook Pro with the M1 chip. I’ve downloaded the “Video Library for Processing 4” developed by The Processing Foundati…

---

## [Problem with live video feed in Processing](https://discourse.processing.org/t/problem-with-live-video-feed-in-processing/39328)

<div class="topic-metadata">

**Author:** [@thinh.pham](https://discourse.processing.org/u/thinh.pham)\
**Replies:** 9\
**Last updated:** [October 19, 2022, 10:15am UTC](https://discourse.processing.org/t/problem-with-live-video-feed-in-processing/39328 "2022-10-19T10:15:14Z")

</div>

Hello, I’m learning Processing and currently having problem with displaying video from webcam using Processing Video library. the console shows this: Processing video library using bundled GStreamer 1.20.3 Scanning GSt…

---

## [How to Iterate over 2D region with 1D pixels array](https://discourse.processing.org/t/how-to-iterate-over-2d-region-with-1d-pixels-array/39336)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 24\
**Last updated:** [October 19, 2022, 5:28am UTC](https://discourse.processing.org/t/how-to-iterate-over-2d-region-with-1d-pixels-array/39336 "2022-10-19T05:28:01Z")

</div>

the snippet code below is doing color tracking and get the average position and draw circle on it, the screen size (640, 480). how to do iteration in one dimensional array in for loop within part of the screen, for examp…

---

## [Processing 4: sound library doesn't work](https://discourse.processing.org/t/processing-4-sound-library-doesnt-work/38410)

<div class="topic-metadata">

**Author:** [@antogonc](https://discourse.processing.org/u/antogonc)\
**Replies:** 2\
**Last updated:** [October 16, 2022, 11:40pm UTC](https://discourse.processing.org/t/processing-4-sound-library-doesnt-work/38410 "2022-10-16T23:40:56Z")

</div>

I’m using Processing 4. The sound library doesn’t work, it says it only works for processing 3. All the libraries related to sound don’t have the green flag. Checking it, they are installed but without the green flag: it…

---

## [How to delete wavy effect on this code](https://discourse.processing.org/t/how-to-delete-wavy-effect-on-this-code/39292)

<div class="topic-metadata">

**Author:** [@pushhand](https://discourse.processing.org/u/pushhand)\
**Replies:** 1\
**Last updated:** [October 16, 2022, 11:05am UTC](https://discourse.processing.org/t/how-to-delete-wavy-effect-on-this-code/39292 "2022-10-16T11:05:41Z")

</div>

/\*\* Time Displacement by David Muth Keeps a buffer of video frames in memory and displays pixel rows taken from consecutive frames distributed over the y-axis \*/ import processing.video.\*; Capture video; int sign…

---

## [I want to show past scene which is few seconds ago in processing (capture cam)](https://discourse.processing.org/t/i-want-to-show-past-scene-which-is-few-seconds-ago-in-processing-capture-cam/39235)

<div class="topic-metadata">

**Author:** [@pushhand](https://discourse.processing.org/u/pushhand)\
**Replies:** 2\
**Last updated:** [October 16, 2022, 8:50am UTC](https://discourse.processing.org/t/i-want-to-show-past-scene-which-is-few-seconds-ago-in-processing-capture-cam/39235 "2022-10-16T08:50:02Z")

</div>

At first, I though that if I use ‘delay’, I can play the camera that shows 10 seconds past scene however, it just slow down the rate I think, Is there any code that make possible to show the scene which is ten seconds b…

---

## [Image processing for loop](https://discourse.processing.org/t/image-processing-for-loop/39291)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 1\
**Last updated:** [October 16, 2022, 7:24am UTC](https://discourse.processing.org/t/image-processing-for-loop/39291 "2022-10-16T07:24:00Z")

</div>

how to change following for loop code, since i want to limit tracking area within the image captured by camera thank you import processing.video.\*; PShader colorFinder, colorPosShader; PGraphics overlay, posBuffer; // V…

---

## [Calculate distance between parameters and target image](https://discourse.processing.org/t/calculate-distance-between-parameters-and-target-image/39270)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 4\
**Last updated:** [October 16, 2022, 6:43am UTC](https://discourse.processing.org/t/calculate-distance-between-parameters-and-target-image/39270 "2022-10-16T06:43:43Z")

</div>

how to calculate distance between fixed parameter and target image/pixel. hi forum. following code does color recognition and find the average position and draw circle on it and able to find if the target (averageX and …

---

## [Webcam not working again after first run](https://discourse.processing.org/t/webcam-not-working-again-after-first-run/39278)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 2\
**Last updated:** [October 15, 2022, 3:40pm UTC](https://discourse.processing.org/t/webcam-not-working-again-after-first-run/39278 "2022-10-15T15:40:08Z")

</div>

I’m trying to use the webcam and it works the the first time I run it, after opening Processing. But after restarting it it crashes and won’t work anymore until I restart the whole Processing. This is my code: import p…

---

## [Resize image processing crash](https://discourse.processing.org/t/resize-image-processing-crash/39223)

<div class="topic-metadata">

**Author:** [@gradientquestion](https://discourse.processing.org/u/gradientquestion)\
**Replies:** 2\
**Last updated:** [October 12, 2022, 3:54pm UTC](https://discourse.processing.org/t/resize-image-processing-crash/39223 "2022-10-12T15:54:08Z")

</div>

Hello ! does anyone know why on my code my image is not in the original format? I try to apply Resize but it does not work on my image? how can i resize it? it looks like she puts herself in a square I just want my ima…

---

## [How do I draw a wireframe cube?](https://discourse.processing.org/t/how-do-i-draw-a-wireframe-cube/39171)

<div class="topic-metadata">

**Author:** [@Umbrella](https://discourse.processing.org/u/Umbrella)\
**Replies:** 3\
**Last updated:** [October 10, 2022, 8:46pm UTC](https://discourse.processing.org/t/how-do-i-draw-a-wireframe-cube/39171 "2022-10-10T20:46:00Z")

</div>

Hi, I’m working on a homework project, part of which requires me to draw a cube made out of triangles. I have drawn a frame and started to fill it in, so that each triangle is a different color. I’ve started writing the …

---

## [Exporting PDF does not show all objects](https://discourse.processing.org/t/exporting-pdf-does-not-show-all-objects/39153)

<div class="topic-metadata">

**Author:** [@Ties2901](https://discourse.processing.org/u/Ties2901)\
**Replies:** 5\
**Last updated:** [October 8, 2022, 2:54pm UTC](https://discourse.processing.org/t/exporting-pdf-does-not-show-all-objects/39153 "2022-10-08T14:54:57Z")

</div>

Hi, I am trying to export a pdf of my final drawing, however when I open the pdf it does not show some of the objects… Anyone who can help me with this? Here is my code: // Creative Challenge 1. Final Version (Concept…

---

## [Blocking in ttslib](https://discourse.processing.org/t/blocking-in-ttslib/39160)

<div class="topic-metadata">

**Author:** [@Shachar](https://discourse.processing.org/u/Shachar)\
**Replies:** 5\
**Last updated:** [October 8, 2022, 2:25pm UTC](https://discourse.processing.org/t/blocking-in-ttslib/39160 "2022-10-08T14:25:22Z")

</div>

hi, I’m trying to use ttslib in order to apply text recognition in my code. The problem is that the code does not continue until the entire sentence has been completed, so for example in this code the word “hello” will n…

---

## [Save transparent image from Geomerative](https://discourse.processing.org/t/save-transparent-image-from-geomerative/39132)

<div class="topic-metadata">

**Author:** [@hellocatfood](https://discourse.processing.org/u/hellocatfood)\
**Replies:** 6\
**Last updated:** [October 8, 2022, 9:54am UTC](https://discourse.processing.org/t/save-transparent-image-from-geomerative/39132 "2022-10-08T09:54:35Z")

</div>

I have geomerative installed to modify an svg. I want to save an image with a transparent background whenever I left-click. However, using the code below, whenever I left click it only saves an image of the unmodified sv…

---

## [Can't update library - and Processing hangs](https://discourse.processing.org/t/cant-update-library-and-processing-hangs/39100)

<div class="topic-metadata">

**Author:** [@everythingability](https://discourse.processing.org/u/everythingability)\
**Replies:** 0\
**Last updated:** [October 5, 2022, 2:36pm UTC](https://discourse.processing.org/t/cant-update-library-and-processing-hangs/39100 "2022-10-05T14:36:13Z")

</div>

I’m attempting to use the Contribution Manager window to update my OpenCV library and I get this… It sort of stalls… Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException: Cannot invoke “javax.swing.JPr…

---

## [How to create Windows like messagebox in Processing using ControlP5?](https://discourse.processing.org/t/how-to-create-windows-like-messagebox-in-processing-using-controlp5/37593)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 14\
**Last updated:** [October 4, 2022, 7:36am UTC](https://discourse.processing.org/t/how-to-create-windows-like-messagebox-in-processing-using-controlp5/37593 "2022-10-04T07:36:54Z")

</div>

Hello, I am new to processing. I am creating GUI using controlP5 library. I am having difficulty in finding a way to create a pop up message box. (similar to a new dialog box in windows., like error message dialog box …

---

## [Modbus TCP library for Java](https://discourse.processing.org/t/modbus-tcp-library-for-java/39017)

<div class="topic-metadata">

**Author:** [@herdal](https://discourse.processing.org/u/herdal)\
**Replies:** 9\
**Last updated:** [October 3, 2022, 10:39am UTC](https://discourse.processing.org/t/modbus-tcp-library-for-java/39017 "2022-10-03T10:39:10Z")

</div>

Hi All, I want to view some variables with processing from a PLC in a LAN network, I came across the modbus library for java while surfing the internet. Is it possible for me to run the code in the link I added below …

---

## [\[JAVA\] 'PDF' library - Is it possible to copy after dragging?](https://discourse.processing.org/t/java-pdf-library-is-it-possible-to-copy-after-dragging/39023)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [October 1, 2022, 1:21am UTC](https://discourse.processing.org/t/java-pdf-library-is-it-possible-to-copy-after-dragging/39023 "2022-10-01T01:21:39Z")

</div>

\[JAVA\] ‘PDF’ library - Is it possible to copy after dragging? hello. The ‘PDF’ library works fine. But I have one question. When output as pdf in ‘Powerpoint’ or ‘Word’ program, the text is touched and dragged. You ca…

---

## [\[deep-vision\] YOLONetwork function question](https://discourse.processing.org/t/deep-vision-yolonetwork-function-question/39013)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [September 29, 2022, 8:48pm UTC](https://discourse.processing.org/t/deep-vision-yolonetwork-function-question/39013 "2022-09-29T20:48:00Z")

</div>

library link : GitHub - cansik/deep-vision-processing: Deep computer-vision algorithms for the Processing framework. weight, cgf link : fire-smoke-detect-yolov4/README\_EN.md at master · gengyanlei/fire-smoke-detect-…

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

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