# BoofCV not working properly with P2D/P3D

**URL:** <https://discourse.processing.org/t/boofcv-not-working-properly-with-p2d-p3d/42969>\
**Category:** Libraries\
**Created:** [October 14, 2023, 2:34pm UTC](https://discourse.processing.org/t/boofcv-not-working-properly-with-p2d-p3d/42969 "2023-10-14T14:34:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shchahliak\_Stas](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Shchahliak\_Stas](https://discourse.processing.org/u/Shchahliak_Stas)\
**Post date:** [October 14, 2023, 2:34pm UTC](https://discourse.processing.org/t/boofcv-not-working-properly-with-p2d-p3d/42969/1 "2023-10-14T14:34:18Z")

</div>

I’ve been trying to make webcam QR code detection with BoofCV. I use the [DetectQrCode](https://github.com/lessthanoptimal/BoofProcessing/blob/master/examples/DetectQrCode/DetectQrCode.pde) example from BoofCV repository. For my application I need it to work at 60fps (with resizing the image from 640\*480 to 1440x1080), which is impossible without using P2D or P3D.  
With the stock renderer, I get about 40fps and QR codes are detected.  
With P2D or P3D renderer, I get steady 60fps, but QR codes are not detected anymore.  
Is there any way to solve that?

---

<div class="post-metadata">

**Author:** ![Shchahliak\_Stas](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Shchahliak\_Stas](https://discourse.processing.org/u/Shchahliak_Stas)\
**Post date:** [October 25, 2023, 7:36pm UTC](https://discourse.processing.org/t/boofcv-not-working-properly-with-p2d-p3d/42969/2 "2023-10-25T19:36:26Z")

</div>

Solved this by using FX2D instead of P2D. With FX2D I get 60fps and QR codes are detected.
