learn-opencv-in-3-hours's Issues
How to add or ceate Resource folder
Assalamu alaykum,
Could you please anyone help me to figure out how to create Resource folder for OpenCv.
Project 1
IN OPENCV 3 the cv2.findContours function return 3 values.
namely im2, contours, hierarchy.
The code from project 1 throws an error about the unpacking of value or value assign error.
Project2
What's the function of the project2? Why my computer always display the windows "WorkFlow" but "ImageWarped"
haarcascades error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'
Continue getting this error for drone face tracking course, I think it is due to the file. Any ideas?
My Code:
import cv2
import numpy as np
def findFace(img):
faceCascade = cv2.CascadeClassifier('Resources/haarcascade_frontalface_default.xml')
imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = faceCascade.detectMultiScale(imgGray,1.1,8)
myFaceListC = []
myFaceListArea = []
for (x,y,w,h) in faces:
cv2.rectangle(img,(x,y),(x + w, y + h),(0,0,255),2)
cap = cv2.VideoCapture(0)
while True:
_, img = cap.read()
findFace(img)
cv2.imshow("Output",img)
cv2.waitKey(1)
Error:
File "C:/Users/zachd/PycharmProjects/droneproject2/venv/Face Tracking.py", line 20, in
findFace(img)
File "C:/Users/zachd/PycharmProjects/droneproject2/venv/Face Tracking.py", line 7, in findFace
faces = faceCascade.detectMultiScale(imgGray,1.1,8)
cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-oduouqig\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'
[ WARN:1] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-oduouqig\opencv\modules\videoio\src\cap_msmf.cpp (434) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
where we can find video12.mp4 ?
Error about VideoCapture in Virtual Pen
When I set cv2.VideoCapture(1)
img alway get none when cap.read() return.
No such file or directory
Hello,
I'm starting to learning python and I'm having difficulties to read the lena's image. When I try to run the program appers the error "no such file or directory". I would like to know how I can fix that.
Att
ColorPicker.py Question
From project 1 you use the Colorpicker.py to get the right values you need. when running the Code I get a problem with it at:
[ WARN:0] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-2b5g8ysb\opencv\modules\videoio\src\cap_msmf.cpp (435) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
Traceback (most recent call last):
imgHsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
cv2.error: OpenCV(4.4.0)
Im using python 3.7.6 and I have cv2 imported
getting an issue in project1.py file
Traceback (most recent call last):
File "C:/Users/mayur/PycharmProjects/OpenCV projects/read.py", line 20, in
findColor ( img, mycolors )
File "C:/Users/mayur/PycharmProjects/OpenCV projects/read.py", line 16, in findColor
cv2.imshow(img,mask)
cv2.error: OpenCV(4.5.2) ๐ error: (-5:Bad argument) in function 'imshow'
Overload resolution failed:
lambo.png vs lambo.PNG in chapter 3 and chapter 7
The image lambo.png is used in chapter 7, and also in the video for chapter 3.
In the Resources directory the file is labeled lambo.PNG so the above exercises throws an error.
Changing the Resources filename to lambo.png will take care of these errors.
Note: chapter 3 video code uses lambo.png and the GitHub code uses shapes.png. This really is not a problem if lambo.PNG is changed to lambo.png
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.