Public Member Functions | |
ViewfinderView (Context context, AttributeSet attrs) | |
void | setCameraManager (CameraManager cameraManager) |
void | setDisplay (int w, int h) |
void | SetText (String tekst) |
void | onDraw (Canvas canvas) |
void | drawViewfinder () |
void | drawResultBitmap (Bitmap barcode) |
void | addPossibleResultPoint (ResultPoint point) |
This view is overlaid on top of the camera preview. It adds the viewfinder rectangle and partial transparency outside it, as well as the laser scanner animation and result points.
org.opencv.samples.tutorial2.ViewfinderView.ViewfinderView | ( | Context | context, |
AttributeSet | attrs | ||
) |
void org.opencv.samples.tutorial2.ViewfinderView.addPossibleResultPoint | ( | ResultPoint | point | ) |
void org.opencv.samples.tutorial2.ViewfinderView.drawResultBitmap | ( | Bitmap | barcode | ) |
Draw a bitmap with the result points highlighted instead of the live scanning display.
barcode | An image of the decoded barcode. |
void org.opencv.samples.tutorial2.ViewfinderView.onDraw | ( | Canvas | canvas | ) |
void org.opencv.samples.tutorial2.ViewfinderView.setCameraManager | ( | CameraManager | cameraManager | ) |
void org.opencv.samples.tutorial2.ViewfinderView.setDisplay | ( | int | w, |
int | h | ||
) |
void org.opencv.samples.tutorial2.ViewfinderView.SetText | ( | String | tekst | ) |