# Logic problems in program code

**URL:** <https://discuss.ai.google.dev/t/logic-problems-in-program-code/29908>\
**Category:** General Discussion\
**Tags:** help\_request\
**Created:** [November 16, 2023, 4:50am UTC](https://discuss.ai.google.dev/t/logic-problems-in-program-code/29908 "2023-11-16T04:50:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![febrii](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/febrii/32/7112_2.png) [@febrii](https://discuss.ai.google.dev/u/febrii)\
**Post date:** [November 16, 2023, 4:50am UTC](https://discuss.ai.google.dev/t/logic-problems-in-program-code/29908/1 "2023-11-16T04:50:27Z")

</div>

Can you help me to change the logic in my code which originally “extracts each pixel into R, G, and B values. Adds these values to the ByteBuffer.” into a code that is able to detect writing or lines in my AI model. Please help me to complete this code so that I can complete my assignment with the lecturer. Thank You.

This code is from  
IJ Apps

---

<div class="post-metadata">

**Author:** ![Kiran\_Sai\_Ramineni](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/kiran_sai_ramineni/32/8859_2.png) [@Kiran\_Sai\_Ramineni](https://discuss.ai.google.dev/u/Kiran_Sai_Ramineni)\
**Post date:** [November 16, 2023, 8:38am UTC](https://discuss.ai.google.dev/t/logic-problems-in-program-code/29908/3 "2023-11-16T08:38:06Z")

</div>

> [@febrii](#):
>
> “extracts each pixel into R, G, and B values. Adds these values to the ByteBuffer.” into a code that is able to detect writing or lines in my AI model.

Hi @febrii, Could you please elaborate more on this? Thank You.
