Comments (7)
A fix for this issue has been put in by @mohammed-Emad . Thus closing this
from hand-gesture-recognition-using-background-elllimination-and-convolution-neural-network.
I'll check and get back to you in a few days
from hand-gesture-recognition-using-background-elllimination-and-convolution-neural-network.
AttributeError: 'NoneType' object has no attribute 'shape'.
I have the same issue. can help me ?
from hand-gesture-recognition-using-background-elllimination-and-convolution-neural-network.
Check the cam or check the video used,
This error does occur when there is a problem reading the camera or video.
He inquires about the shape class,
But the value of the frame now equals None,
There are no classes there so this is a mistake.
It was supposed to make a condition to alert you to the lack of input to understand the problem without entering into other labyrinths.
For example
if ret==True:
...your code..
else:
error input and break
or real example
while(True):
# get the current frame
(grabbed, frame) = camera.read()
if not grabbed: #is true
print("Error input chk your[cam Or video]")
break
# resize the frame
frame = imutils.resize(frame, width = 700)
# flip the frame so that it is not the mirror view
frame = cv2.flip(frame, 1)
# clone the frame
clone = frame.copy()
# get the height and width of the frame
(height, width) = frame.shape[:2]
Thanks, good luck
from hand-gesture-recognition-using-background-elllimination-and-convolution-neural-network.
or cam error port?
camera = cv2.VideoCapture(0)
try -1 vs 0
camera = cv2.VideoCapture(-1)
see
cv2-videocapture-open-always-returns-false
from hand-gesture-recognition-using-background-elllimination-and-convolution-neural-network.
Hey @mohammed-Emad your point seems right. I should have included a check for the cam capture before getting into action. I would request you to raise a Pull Request to fix the Issue. I can then merge it in accordingly. Thanks.
from hand-gesture-recognition-using-background-elllimination-and-convolution-neural-network.
Hi @SparshaSaha , I will start with that now
Thank you
from hand-gesture-recognition-using-background-elllimination-and-convolution-neural-network.
Related Issues (10)
- prediction = model.predict([gray_image.reshape(89,100,1)]) ValueError: cannot reshape array of size 7500 into shape (89,100,1) HOT 2
- New Gesture Dataset HOT 5
- Error on name 'camera' is not defined on PalmTracker file
- new dataset HOT 1
- ValueError: need more than 2 values to unpack HOT 3
- ValueError: The passed save_path is not a valid checkpoint HOT 2
- Version? HOT 2
- network structure HOT 3
- [Training Phase] cannot reshape array of size 107100 into shape (89,100,1) HOT 6
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.
from hand-gesture-recognition-using-background-elllimination-and-convolution-neural-network.