| Exception Backtrace: | ||
|---|---|---|
| Exception Backtrace: | ||
|---|---|---|
--
You received this message because you are subscribed to the Google Groups "BoofCV" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HI Peter,Thanks a million for your response.When I specify the preview camera to use, I examine the largest resolution that the camera supports that is closest to the aspect ration of the screen.It is nearly always 1920 * 1080, I have never seen it higher than this. We have tested across many devices using this resolution and have only seen an issue on the Samsung Galaxy C5 (we know this from the Firebase crash log, we don't have access to the exact device unfortunately). The code we are using is very similar to the code in the demo app.You mentioned that memory has been optimised for contour? I don't follow what you mean by this. Could this have an impact?
I think we might bump the version up to 0.30 and see if that helps. Will it still support Camera 1 api though?
@Override
protected void declareImages( int width , int height ) {
super.declareImages(width,height);
output = Bitmap.createBitmap(width,height,Bitmap.Config.ARGB_8888 );
outputGUI = Bitmap.createBitmap(width,height,Bitmap.Config.ARGB_8888 );
storage = ConvertBitmap.declareStorage(output,storage);
}
I was wondering if I just reduced the resolution of the camera preview, could that fix this issue?
Any advice would be very welcome.
Thanks
John
org.boofcv:recognition:0.26org.boofcv:recognition:0.30
org.boofcv:boofcv-recognition:0.30That's a likely culprit. In the demo app I turned off crash reports from someone jacking the resolution way up to around 4048x3036. Maybe look up the total memory on those systems then estimate how much memory is needed at the resolution it crashed on?In the latest SNAPSHOT there's an option to not double buffer. Meaning only one Bitmap image. The downside of that approach is that image shown to the user will some times be a composite of two different video frames.
On Mon, Sep 10, 2018 at 3:14 AM John Mollaghan <jmollaghan@inhancetechnology.com> wrote:
Hi Peter,Thanks for your reply.The crash seems to be happening on the Galaxy C5, C7 and C9 models. We have just ordered a C7 device from EBay, so we should be able to test on that.The crash seems to be coming from within the BoofCV library, specifically in the "VideoImageProcessing" class on line 37. Here is that class below, the second last line of the method is where it's happening (outputGUI = Bitmap.create...)@Override
protected void declareImages( int width , int height ) {
super.declareImages(width,height);
output = Bitmap.createBitmap(width,height,Bitmap.Config.ARGB_8888 );
outputGUI = Bitmap.createBitmap(width,height,Bitmap.Config.ARGB_8888 );
storage = ConvertBitmap.declareStorage(output,storage);
}I was wondering if I just reduced the resolution of the camera preview, could that fix this issue?Any advice would be very welcome.ThanksJohn
On Mon, 10 Sep 2018 at 04:06, Peter A <peter....@gmail.com> wrote:
sorry for the very late reply. See responses below:
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--"Now, now my good man, this is no time for making enemies." — Voltaire (1694-1778), on his deathbed in response to a priest asking that he renounce Satan.
--
You received this message because you are subscribed to the Google Groups "BoofCV" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "BoofCV" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--"Now, now my good man, this is no time for making enemies." — Voltaire (1694-1778), on his deathbed in response to a priest asking that he renounce Satan.--
You received this message because you are subscribed to the Google Groups "BoofCV" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+unsubscribe@googlegroups.com.
On 12 September 2018 at 16:56, Peter A <peter....@gmail.com> wrote:
That's a likely culprit. In the demo app I turned off crash reports from someone jacking the resolution way up to around 4048x3036. Maybe look up the total memory on those systems then estimate how much memory is needed at the resolution it crashed on?In the latest SNAPSHOT there's an option to not double buffer. Meaning only one Bitmap image. The downside of that approach is that image shown to the user will some times be a composite of two different video frames.