Questions tagged [opencv]

6 questions
3
votes
0 answers

Run Servo when detect object on OpenCV Python

I want to connect OpenCV (Python) with arduino Uno when it detects a tennis ball. OpenCV code: import numpy as np import cv2 import serial face_cascade = cv2.CascadeClassifier('tennisballdetect.xml') cap = cv2.VideoCapture(0) while 1: ret, img =…
sayem48
  • 31
  • 1
  • 2
2
votes
2 answers

How to setup OpenCV with Arduino?

My question is how to do it (set it up), not if I can do it or with what Arduino. I've previously setup OpenCV with Visual Studio 2015. It was a tough one, but I made it through. Now I want to set it up so that it would work with the Arduino and its…
Dat Ha
  • 2,943
  • 6
  • 24
  • 46
1
vote
0 answers

Problem adding library in the Arduino IDE

Currently, I'm trying to build image processing on ESP32 using OpenCV GitHub - joachimBurket/esp32-opencv: Shrinked OpenCV for ESP32. Then I want to put this library into Arduino IDE. But, I'm having problem "Specified folder/zip file does not…
had
  • 11
  • 1
1
vote
1 answer

opencv reading the display and doesnot provide serial communication with arduino

I was creating a project where the following part of the code reads certain area of the display(which i screen shared from mobile) import cv2 as cv import numpy as np from PIL import ImageGrab import serial arduinodata =…
Akash
  • 13
  • 2
0
votes
0 answers

OpenCV on ESP32 Arduino Nano

I am implementing a program on Arduino Nano ESP32: the KY-037 microphone is connected to the board and collects five seconds of analog signal. Then, an algorithm is applied to create a 128 x 128 matrix from the five-second signal. Now, I would like…
Alice
  • 31
  • 4
-1
votes
1 answer

Run servo when image is capture

I am trying to create a program when the camera capture the servo will rotate in 90 degrees continously, but my code will stop in print output 2 any idea to run the servo continously? Here's the Code import numpy as np import cv2 import…