Hello! I am a beginner in using Raspberry Pi so please be kind to me
.
I am trying to incorporate an object detection capability into my camera with the help of OpenCV and Tensorflow Lite libraries. My Pi's OS as well as most software are up-to-date. I based my work on a previous article on this site (https://www.raspberrypi.com/news/using- ... flow-lite/). However, I encountered an error upon running the program.
The terminal pointed out Line 34 as where the error occurred. Any help will be appreciated ![Smile :)]()

I am trying to incorporate an object detection capability into my camera with the help of OpenCV and Tensorflow Lite libraries. My Pi's OS as well as most software are up-to-date. I based my work on a previous article on this site (https://www.raspberrypi.com/news/using- ... flow-lite/). However, I encountered an error upon running the program.
Please help me resolve the error. For your reference, here is the part of the script where the error has occurred.'libcamera._libcamera.FrameBuffer' object has no attribute 'mmap'
Code:
31def DrawRectangles(request):32stream = request.picam2.stream_map["main']33fb = request.request.buffers[stream]34with fb.mmap(0) as b:35im = np.array(b, copy=False, dtype=nt.uint8).reshape((normalSize[1], normalSize[0], 4))

Statistics: Posted by royalkurt — Sun Jan 14, 2024 8:47 pm