How to access camera frames in flutter quickly : <p>I would like to implement near real-time OCR on the camera feed of my flutter app. To do this I would like to access the camera data in a speedy manner.
As far as I can tell I have two options, and have hit roadblocks with both:</p>

<ol>
<li><p>Take a screenshot of the <code>CameraPreview</code> by putting a <code>RepaintBoundary</code> around it and creating a <code>RenderRepaintBoundary</code>, and calling <code>boundary.toImage()</code>. The problem with this method is that the .toImage method only seems to capture the painted widgets in the boundary and not the data from the camera preview. Simmilar to the issue described here: <a href="https://github.com/flutter/flutter/issues/17687" rel="noreferrer">https://github.com/flutter/flutter/issues/17687</a></p></li>
<li><p>Capture an image with <code>controller.takePicture(filePath)</code> from Camera 0.2.1, similar to the example docs. The problem here is that it takes super long before the image becomes available (2-3 seconds). I guess that this is because the file is saved to the disc on capture and then needs to be read from the file again.</p></li>
</ol>

<p>Is there any way that one can directly access the picture information after capture, to do things like pre-process and OCR?</p>
