public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: "Németh Márton" <nm127@freemail.hu>
To: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: libv4l: zoom, pan and tilt?
Date: Sun, 23 Aug 2009 15:09:26 +0200	[thread overview]
Message-ID: <4A913F86.7040704@freemail.hu> (raw)

Hi,

I am using lib4l to get access to my camera from Flash. I get the pictures
right. In Flash the usual used resolution is as low as 320x240.

I have a 1.3MegaPixel webcam which means it could do 1280x1024 resolution. The
problem with this webcam is that it has a fixed focus and the objects which
are too close to the camera are not sharp enough. This brakes some barcode
reader applications such as http://en.barcodepedia.com/ or
http://www.gurulib.com/_scripts/barcode/gurulib_barcode.html .

My idea would be to add support for creating 320x240 by not just downscaling
the image but doing digital
 - zooming (with controls V4L2_CID_ZOOM_ABSOLUTE, V4L2_CID_ZOOM_RELATIVE and
   V4L2_CID_ZOOM_CONTINUOUS)
 - panning (controls V4L2_CID_PAN_RELATIVE, V4L2_CID_PAN_ABSOLUTE
   and V4L2_CID_PAN_RESET) and
 - tilting (controls V4L2_CID_TILT_RELATIVE, V4L2_CID_TILT_ABSOLUTE and
   V4L2_CID_TILT_RESET)
based on a higher resolution image. In this case the object could be in the sharp
range in focus and the mentioned applications could work.

What do you think, is it possible to implement such functionality in libv4l?

Regards,

	Márton Németh

                 reply	other threads:[~2009-08-23 13:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A913F86.7040704@freemail.hu \
    --to=nm127@freemail.hu \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox