Ask Your Question

How can you access a webcam's zoom function?

asked 2012-07-23 05:09:22 -0500

Yeehaw gravatar image

Hello my friends,

I was wondering if there is any way to access the functionality of a webcamera to zoom in/out of a captured video stream. I'm displaying a camera stream window in my application and I would like to add a feature to zoom in/out via a slider. Is it possible using the JavaCV or do you have any other suggestions ?

Thanks a lot in advance :)


edit retag flag offensive close merge delete



Does your camera support zooming? If no, you can use resize functionality. For accessing to such camera functionality you can use interfaces provided by your system like video4linux. For java exists lib - v4l4j, (

Daniil Osokin gravatar imageDaniil Osokin ( 2012-07-23 06:15:01 -0500 )edit

Yes it supports zooming, I'm using it to capture QR-Codes. I want to give the user the opportunity to zoom in and out when necessary, if the QR-codes couln't be detected yet. So zooming in and out of the image itself wouldn't do the trick I quess, because the image wouldn't get sharper by doing that. Thank you for your suggestion, I'll have a look at it :)

Yeehaw gravatar imageYeehaw ( 2012-07-23 11:02:55 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2012-10-29 04:38:05 -0500

Mahdi gravatar image

You may find your answer here if you are using windows:

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2012-07-23 05:09:22 -0500

Seen: 4,431 times

Last updated: Oct 29 '12