I need to build a solution that will read from a USB camera and save the Video and Image files in Dicom Format.
I'm wondering what free tools could I use to accomplish this.
Without more details such as target operating system, or programing language, all I can do is give you some general links.
For dealing with Dicom format:
dcm4che, a DICOM Implementation in
JAVA
DICOM# (partially rewrites dcm4che open source project in C#)
C++ Open Source Dicom Library
For capturing images from a camera in Windows:
Windows Mobile 5 or older
devices.
Webcam using DirectShow.NET
(codeproject)
SO answer about using WIA
(Windows Image Adquisition)
Also - if you want to interoperate with other DICOM devices you might want to look at the visible light video DICOM supplement:ftp://medical.nema.org/medical/dicom/final/sup47_ft.pdf. This will tell you the groups/elements that the devices consuming your objects might expect.
Related
I would like to use my IP Camera as a real scanner.
The question is :
is it possible ( or is this type of driver already exists ) to have a real driver (TWAIN, WLA, ...) for a generic IP Camera (MJEPG or H264 stream)
which instead of scanning and preview, take one snapshot from this camera and offers some classic tools (like resizing, cropping, contrast, light level ?)
Basically I search a Windows / MacOS solution
Thanks in advance
If your IP Camera supports TWAIN, then it should be easy to develop your own application (I'm guessing that's what you're asking since you're asking this in Stack Overflow) that takes an image from the camera using TWAIN and then perform the image operations that you wanted (resize, crop, etc.).
I recommend using Python with the pytwain / twain module for this. You can code a very quick prototype to see if it works with your IP Camera. Then you can use OpenCV Python or Pillow (PIL) to perform the image processing and image operations. This solution is also cross platform (should work in Windows / Mac OS / Linux) which is what you also wanted.
I need to get raw frames from the Camera in YUV/YCbCr format on windows phone 8.1 (without Silverlight), I don't see any example on internet, is it possible using MediaCapture or CameraPreviewImageSource (Nokia SDK) ?
Thanks
The recommended way to process raw video frames on Windows Phone 8.1 is to write a custom MFT plug-in and then add it to the MediaCapture object via AddEffectAsync. The MFT acts as a DSP filter between the decoder and the XAML rich compositor.
You can choose the color space that you want to support in your MFT and Media Foundation will automatically insert color space converters for you. Keep in mind that the color spaces available on the Phone are limited. That said, NV12 is the standard color space for most video devices and is considered a 4:2:0 YUV color space.
While this sounds simple in theory it can be quite complex in practice. MFTs must be writing in C++ / MoCom. Writing an MFT does require rather deep knowledge of C++ and COM. I don't want to scare you away from giving it a try but it does have a learning curve.
Here is a sample for Windows Store that shows you how to create a MFT plug-in and add it to the MediaCapture object. Unfortunately for whatever reason this sample did not get converted to a Universal app. However, it should be easy to do the conversion. Since this is such a seminal sample I will request that we publish it as a universal app.
Media capture using capture device sample
I hope this helps,
James
I would like to develop an interface to a Wireless WiFi IP camera and stream its video in a frame in my application. I never did such a thing and would appreciate any pointers.
how should I approach this task?
Have a look at my MJPEG Decoder on CodePlex. You'll find source + binaries for almost every Windows platform (WinForms, WPF, Windows Runtime, etc.) along with samples. Let me know if you have any questions.
There are couple options that you may consider. However, it is very important to define the stream/source of video transmitter.
How to use a web cam in C# with .NET Framework 4.0 and Microsoft Expression Encoder 4
Perform live video stream processing from CaptureElement & MediaCapture
Video Panel control XAML description for Viewing Webcam in WPF
I trying capturing the image in video mode from Canon Digital Camera IXUS 75 model using WIA type. But I didn't get any thing. If Photo mode, I can seen digital Camera storage data i.e., video,photos etc. So, is it required any .dll file or any stuff for capturing image in video mode. Even I tried different way's also
Using JavaCV.It detects Webcam,Laptop internal Camera.But it doesn't detect digital Camera device.
JTWAIN is not supported with windows 64-bit OS. So, I didn't tried with this.
Please help me. Either Canon digital camera software nor Java relevant stuff.
Assuming you still plan to use Java and if the problem is still an issue, I used Asprise's JTwain to get image from scanner, camera (not only laptop web cam) and etc. The only thing you need are the drivers for the devices. Grab an eval version from Asprise and check this step by step dev guide here. As far as I understood, this should be good enough for your requirements.
By the way, seeing the file structure of a camera does not always mean you have the device fully working.
Do you know any application that will display me all the headers/parameters of a single H264 frame? I don't need to decode it, I just want to see how it is built up.
Three ways come to my mind (if you are looking for something free, otherwise google "h264 analysis" for paid options):
Download the h.264 parser from (from this thread # doom9 forums)
Download the h.264 reference software
libh264bitstream provides h.264 bitstream reading/writing
This should get you started. By the way, the h.264 bitstream is described in Annex. B. in the ITU specs.
I've created a Web version - https://mradionov.github.io/h264-bitstream-viewer/
Based on h264bitstream and inspired by H264Naked. Done by compiling h264bitstream into WebAssembly and building a simple UI on top of it. Output information for NAL units is taken from H264Naked at the moment. Also supports files of any size, just will take some time initially to load the file, but navigation throughout the stream should be seamless.
I had the same question. I tried h264 analysis, but it only supports windows. So I made a similar tool with Qt to support different platforms.Download H264Naked. This tool is essentially a wrapper around libh264bitstream