Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Taking a picture with a microscope
Taking a picture with a microscope [message #49617] Wed, 14 March 2018 17:51 Go to next message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
Hi there,
I searched the forum, but found nothing relevant. I need to create a simple application that shows live the image captured by a digital microscope and when the users click a button save an image. The microscope is a usb digital microscope and it is seen by Linux as a usb-webcam. If someone could point me to the right direction it would be much appreciated.
Regards,
gio
Re: Taking a picture with a microscope [message #49618 is a reply to message #49617] Wed, 14 March 2018 20:31 Go to previous messageGo to next message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
Did you try some existing applications like cheese? https://wiki.gnome.org/Apps/Cheese

The problem is that Upp has no hardware accelerated surface/canvas support.
Event if you get image from camera, you have to use external libraries to show it or you will be limited to very low resolutions and low frame rates.

To get image from camera you can try high level libraries like ZBar, OpenCV.
To show it you can use SDL (SDLCtrl from bazaar), OpenCV, but since DHCtrl is not supported on Gtk backend, you will have to use X11 (NOGTK mode).

Here are some links:
https://github.com/kryali/SmileTime/blob/master/SDL-capture- example.cpp
https://docs.opencv.org/3.0-beta/modules/videoio/doc/reading _and_writing_video.html

[Updated on: Wed, 14 March 2018 20:31]

Report message to a moderator

Re: Taking a picture with a microscope [message #49619 is a reply to message #49618] Thu, 15 March 2018 17:43 Go to previous message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
I have tried Cheese (actually, I used it to test the microscope), but the capturing of the image will be just a function in another software and I would like that everything is in one application.

I saw that in examples-bazaar there are two projects - OpenCV and OpenCV_demo - maybe I can use them as a basis.
Previous Topic: How to install on raspberry
Next Topic: Simple progress bar example
Goto Forum:
  


Current Time: Thu Mar 28 22:45:59 CET 2024

Total time taken to generate the page: 0.01737 seconds