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..?
            Asked
            
        
        
            Active
            
        
            Viewed 2,520 times
        
    2 Answers
0
            
            
        You can use OpenCV for Android they have samples similar to what you want.
        Alexander Kulyakhtin
        
- 47,782
 - 38
 - 107
 - 158
 
- 
                    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