0

I am using Camera Api in my app.I want to draw Straight line on camera preview and mark some pixel values on it I am using frame layout to show camera preview.What I have to do..?

devian
  • 123
  • 4
  • 17

2 Answers2

0

You can use OpenCV for Android they have samples similar to what you want.

Alexander Kulyakhtin
  • 47,110
  • 36
  • 104
  • 156
  • I dont want openCV its just to see weather the position is correct – devian May 23 '13 at 06:22
  • Well, then, as the other answer suggests, you have a SurfaceView, right? You can draw on the surface view as they do in SDK Lunar Landler sample. You can have a camera preview callback set up so you are getting the preview pixels and determine somehow what to draw from them http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html – Alexander Kulyakhtin May 23 '13 at 06:30
0

You will need to create a custom camera activity

Arun C
  • 8,985
  • 1
  • 27
  • 42