Closed d01010101 closed 5 years ago
Try increasing the delay to more than 5 milliseconds.
I'm no camera sensor expert, but it seems like the sensor needs some time to settle/adjust before you actually take the capture. I would start with maybe 5000 until you get a working picture and then dial it down.
By the way, you definitely don't need to use Maven, adding the jars manually as you've done is perfectly fine.
I finally made run BasicTest within the library. it has a delay of 5 and produces good images. In my app, I need at least ~50 for an image to be produced. I need one image per second so it is not a problem, but the disrepancy seems a bit strange to me. Anyway, it works for now, thanks.
Well that's good to hear but that discrepancy indeed seems odd.
raspistill works on this raspberry as expected
I do not use maven in the particular app to which I would add camera functionality, thus I copied manually jna-4.2.2 and slf4j to my app from what picam put into .m2
all compiles without errors, the code
reports no exceptions, prints out:
What i get is a black jpg of size 58800.
I know that I do not use picam in a standard way, but otherwise it would be limited to maven only apps. Nevertheless, I attach the right jna-4.2.2 library, compile all on the same raspberry pi system and there are neither compiler nor runtime exceptions reported.
Possibly a small demo directly in picam would help, so that it could be tested if picam works at all on the system and check for differences between the working demo and a non-working user app.
mvn test
passes, but produces no image for a visual inspection.System details: