- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Intel Hello?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my application I am saving images obtained from the camera (though not from the face recognition module) into a sqlite database from C#. I'm not sure how similar to your case this is (as you haven't given much information), but it may help.
You can do something like:
PXCMImage.ImageData data; PXCMCapture.Sample photo = pSenseManager.QuerySample(); PXCMImage image = photo.color; image.AcquireAccess(PXCMImage.Access.ACCESS_READ, PXCMImage.PixelFormat.PIXEL_FORMAT_RGB24, out data); Bitmap bitmap = data.ToBitmap(0, image.info.width, image.info.height)); //then when you want to save: ImageConverter converter = new ImageConverter(); byte[] imgData = Compress((byte[])converter.ConvertTo(bitmap, typeof(byte[])));
Then you can just insert the imgData variable into your database. I'm sure your favourite search engine will help you out if you don't know how to do that already.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page