Android Question B4A - Form recognition

amorosik

Expert
Licensed User
I would like to carry out a procedure to recognize the position of a shape taken by the telephone camera
For example a form of this type

should return angle = 0

A form of this type

should return angle = 90

So I would like the procedure to 'read' the direction of the shape visible in the camera
How do you get such a result?
 

MicroDrie

Well-Known Member
Licensed User
Longtime User
Well a long time ago there was a Hasselblad that take 5 by 5 square photos. Today, the dimensions of an Android phone are not square, but rectangular. In other words, there is a difference between the height and width. Is it perhaps a solution by asking it to determine the angle?
 
Upvote 0

canalrun

Well-Known Member
Licensed User
Longtime User
You might want to look for things related to "OpenCV".

OpenCV is an image processing library that is designed to do things like you ask and much more. It's complicated and not easy to use.

I used this around 3 years ago to locate the position of sub images within an image. I don't remember exactly what I did. I may have uploaded some examples with source, but being several years old they are probably almost worthless.

A member created a library several years ago to make using OpenCV easier. I don't know the state of this library and have never used it, but you may find it helpful.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…