P
P
Pavel K2016-05-11 00:13:59
C++ / C#
Pavel K, 2016-05-11 00:13:59

How to trim empty space in OpenCV?

Greetings!
There is a picture inserted on a black background in an arbitrary place,
how to crop this black background in the least expensive way, provided that the background is free of interference, i.e. completely #000 ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2016-05-12
@PavelK

В общем либо пробегаться по всей картинке и искать первый попавшийся пиксель по горизонтали/вертикале по обеим сторонам, либо docs.opencv.org/2.4/doc/tutorials/imgproc/shapedes...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question