0

I am trying to make bounding box which will also show focus quality prediction like in example shown here:

Image from here

I want to do it in real time, using webcam.

I am already using visualization_utils to draw a boxes on my output (camera, opencv). Later I use function cv2.Laplacian(image, cv2.CV_64F).var(), but it gives me overall value of whole picture.

My goal is to calculate Laplacian variation inside the bounding box.

Could you please give me an advice or provide an example how it can be done?

Adam
  • 2,726
  • 1
  • 9
  • 22
stacker
  • 3
  • 3

0 Answers0