Recent

Author Topic: Capturing image from Linx tablet's camera  (Read 1910 times)

Pi

  • Jr. Member
  • **
  • Posts: 61
Capturing image from Linx tablet's camera
« on: January 16, 2016, 11:22:15 am »
The Linx 8 and Linx 10 tablets use Windows 8 and can run 32 bit Lazarus programs. They have 2 built in cameras.

Is it possible using Lazarus to capture an image from the outward facing built in camera? eg. capture it to memory as a bmp/jpeg - that could be displayed on screen in a timage, so it could be processed. Ideally I'd want to capture and process an image from the camera multiple times a second (and also play a sound, etc. if necessary depending on results of the processing).
Lazarus version 0.9.30.4 + Lazarus 32 bit 1.2.6

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1188
Re: Capturing image from Linx tablet's camera
« Reply #1 on: January 16, 2016, 03:56:19 pm »
I have used the very nice pxl library for this !

http://asphyre.net/products/pxl
https://github.com/yunkot/pxl
« Last Edit: January 16, 2016, 04:17:43 pm by DonAlfredo »

Pi

  • Jr. Member
  • **
  • Posts: 61
Re: Capturing image from Linx tablet's camera
« Reply #2 on: January 16, 2016, 04:46:04 pm »
I have used the very nice pxl library for this !

http://asphyre.net/products/pxl
https://github.com/yunkot/pxl
Thanks. So I'd need to install that library first? Is there a list of functions anywhere that it adds?

What function would I need to call with this library to capture the image from the Linx 8 or Linx 10's camera? Also is there documentation/examples of that function anywhere?

(Note the processing I'm asking about (currently) is quite simple checking of the RGB values of each pixel for each captured image - multiple times a second (or every so many pixels if it's not possible ie. if that's too slow). Maybe that library has a faster way to do it though).
« Last Edit: January 16, 2016, 04:52:27 pm by Pi »
Lazarus version 0.9.30.4 + Lazarus 32 bit 1.2.6