utaresearch / RealPi2dDIC

A Low-cost and Open-source Approach to In-situ 2D Digital Image Correlation (DIC) Applications
https://utaresearch.github.io/RealPi2dDIC/sop.html
GNU General Public License v3.0
28 stars 11 forks source link

Option for webcam and Crappy integration #1

Open jeffwitz opened 3 years ago

jeffwitz commented 3 years ago

Very interesting work, it would be very interesting to add webcam by using OpenCV. It would allow people to use it with a PC. It is also possible to use a webcam with RPi with v4l2 We perform RT DIC driver experiments on RPi at 7Hz using 720p image from picamera using DISflow from OpenCV in our in house platform named CRAPPY, it would be great to try your software inside it ! Best Regards

uta-dasp commented 3 years ago

Thank you @jeffwitz .

It is really a good idea to incorporate webcam for ease of use. But we figured out that opencv v4l2 is actually buggy and the image quality is not too impressive. Besides, with picamera we can change camera parameters very easily, with v4l2 it is much more complex. However, this is worth a try.

It would really great if you can use this inside your platform Crappy. Please let me know if you need any help. I would be happy to help. You can read this article for more information: https://www.sciencedirect.com/science/article/pii/S2352711020303587

However, with picamera and rasp 3B, the speed is not too impressive at 1080p. But with 720p we can go far beyond. For some time limitation we haven't tried with rasp 4. I guess that will be better.

Thanks.