opencv

Connecting OpenCV to a Java project

When executing code from the tutorial: static{ System.loadLibrary(Core.NATIVE_LIBRARY_NAME); } public static void main ... quite clear what to do. Download the system library named *411, or install an older version of OpenCV that has version 410?

Error installing opencv

You need to install opencv on jupyter On my interpreter via pip, I calmly did it. But there are problems with jupyter. conda ... hours searching for information and I start cursing the one the fact that I accidentally came across this article here it is

ImportError: DLL load failed: The specified module was not found. Will not see cv2

The program uses cv2, I work in conda. Recently, everything worked fine, but then this error began to occur. I recently start ... ort module = self._system_import(name, *args, **kwargs) ImportError: DLL load failed: Not found the specified module. '''

How do I make an image mask that changes part of the image to grayscale?

You need to put a circle on the image, outside of which the image will change color to grayscale, and inside the circle the c ... = img1-41 ax_1.axis('off') ax_1.imshow(ax_1.Img) Who knows how this can be implemented? The first picture in the image: .

The OpenCV Python face recognition method doesn't work

The problem is this. I did facial recognition for example. And then-bang! and knocks out an error. And specifically in the me ... is somewhere inside the library. How to solve it? I did everything according to the example that is everywhere. What's wrong?

Implementing a C++ project in Android Studio

Worked with OpenCV in C++, now it's time to do it on android. How to properly connect an old C++ project to JNI?

Table recognition

Hello everyone Periodically, there is a need to recognize the table and extract information from the cells. Tell me, pliz, wh ... threshold(imgray, 127, 255, 0) image, contours, hierarchy = cv2.findContours(thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

TypeError: Expected cv::UMat for argument 'src'

I try to pull out the outline of the object contours from the photo, but I get an error: Ret,thresh = cv2.threshold(img, ... tam = len(contorno) cv2.drawContours(img,contornoGrande.astype('int'),-1,(0,255,0),2) cv2.waitKey() cv2.destroyAllWindows()

Automatic image cropping

What is available? Some array of photos on which there are cables attached to a white stand (one of the copies will be atta ... the stand borders each time. Are there ready-made solutions for such cases? If not, how can this be solved? Photo instance:

How do I find the length of a circle in an image?

Given an image, you need to find the length of the circle on it, I tried to do this using opencv-python by coordinates , but ... h of this arc, please tell me how this can be done using built-in datasets, for example, something like finding the letter C.

Getting the color and direction of the arrow OpenCV python

Good afternoon, your help is required, you need to determine the color of the shape and the direction of the arrow from 0 to ... cv.drawContours(img, [box], -1, (255, 0, 0), 2) cv.imshow('contours', img) cv.waitKey() cv.destroyAllWindows()

Search for the coordinates of an object in a filtered image

There is a filtered image without unnecessary noise. There are problems with finding the object in the image even on a black ... the coordinates of the object, but the coordinates of the area in which the NON-black color prevails. I hope for your help

Libraries for working with images

I need to go through all the pixels of the image. What libraries can I use to do this?

OpenCV CMake throws an error

I'm trying to make a configuration in CMake to try the Surf handle in OpenCV c++, but CMake throws an error calib3d core ... cmake/OpenCVModule.cmake:370 (_assert_uniqueness) modules/CMakeLists.txt:7 (ocv_glob_modules) What could be the problem?

binarization in OpenCV

If you perform a Gaussian blur on an image (OpenCV, function - GaussianBlur ()), it will be considered as a binarization of the image? That is, we can say that GaussianBlur () = = binarization? Or not? (sorry for the stupid question)

Recognizing text in a specific area of a PDF scan in Python

There is a scan of the document in pdf format. How to recognize text in a certain area of such a document, more precisely, a digital number?

Error in opencv-python:AttributeError: partially initialized module 'cv2' has no attribute 'VideoCapture' (most likely due to a circular import)

I have writes error: AttributeError: partially initialized module 'cv2' has no attribute 'VideoCapture' (most likely due to a ... cv2.imshow('frame',gray) if cv2.waitKey(1) & 0xFF == ord('q'): break cap.release() cv2.destroyAllWindows()

Find out the pixel color in real time from the screen

I need to find out the color of any pixel (let's say in chrome) and for example output it (256.256.256). How can this be implemented?

How to recognize objects (numbers) in a python picture / screenshot?

I make a screenshot using the PIL library of a section of the screen: I need to determine the balance from the screenshot. I ... ptions) If there are simpler solutions, then you can use them (preferably without OOP and browser scripting is not suitable)

How do I normally do triangle recognition using open cv in python?

I have two programs for recognizing triangles in a photo, but they don't work the way I want them to. The essence of the prog ... utting name of polygon along with the shape cv2.imshow('polygons_detected', img) cv2.waitKey(0) cv2.destroyAllWindows()