Camera Hardware

how to access camera hardware with unity ?

or should i use external library ?

you need to use an external library / plugin, unity does not provide camera access of any form

can you give me any link ?

I don’t know of a plugin for this on android out of head sorry.

the ArToolkit interface UnityAR use VidCap library for using camera on Unity and it’s ok if you make calls on a dll…
http://forum.unity3d.com/threads/30817-UnityAR-ARToolkit-Interface?highlight=stream+camera

UnityAR does not support mobile devices as far as I know. You could have a look at AndAR and see how they captured camera input and send it over to OpenGL. Then it has to be solved using native code. Currently I’m doing the same and it is a pain in the ass. But the AndAR project and this page about integrating Unity in Eclipse is a good start.

This project has code to grab the camera frame http://code.google.com/p/andar/

If you don’t care something that is overkill, Qualcomm AR will do it.