-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get any object detection #10
Comments
What version of TensorFlow do you have installed?
|
|
Ah, thank you for the report. Can you try uninstalling TensorFlow 1.x and installing this community-built TensorFlow 2.0 wheel? pip uninstall tensorflow
pip install https://github.com/leigh-johnson/Tensorflow-bin/blob/master/tensorflow-2.0.0-cp37-cp37m-linux_armv7l.whl?raw=true |
Thanks, that's worked, but now I have a different problem: It doesn't seem to track objects and it always tries to pan and tilt out of range. My HDMI cable doesn't seem to be working at the moment so I don't actually know what it's detecting (I'll buy a new one tomorrow), but here's the output when I try and track a book right in front of the camera:
I omitted most of the |
When you run If the motion doesn't look like the .gif below, try swapping your servo connectors (e.g. unplug the connector from channel 1 and plug it into channel 2, plug the connector in channel 2 into channel 1) |
Yep, that works perfectly. I'll report back when I have a working HDMI connection so I can see what the camera is seeing.
I'm in a taxi currently so I tried to track a car behind me, seems to find the car at first but then slowly tilts up or down to 90 degrees and hits the tilt limit. |
Okay I think I've found it:
on line 106 and 107 to
Now it doesn't try and pan or tilt past the limit, and it pans to follow me when I stand in front of it and move to the side. Seems to get stuck on Edit: flipped the camera image in camera.py instead: figured it's the camera image that was upsidedown. Not sure if an upsidedown image affects detection but I thought I may as well. |
That makes sense, @tmanchester - thank you for the report! A flipped camera will not affect detection, but the tracking angle will be incorrect (as you observed by inverting the pan / tilt signs). I'll add a debug command for camera orientation in the next release. That should make it easier for anyone who runs into this issue. Glad you got it working! |
Dear all, Could you please help me . In Tracking mode, with servos PAN & TILT working. How can I come back to In RANGE ( both Pan and Tilt) when they come out and the message Pan_angle not in range -95.33 appear and finally both pan and tilt servos STOPED? It happens when the CONDITION "in_range(pan_angle, SERVO_MIN, SERVO_MAX): is NOT fulfilled and jumps to function ELSE ( both for PAN and TILT) else: How can RESTART in possition 0 both servos and BEGIN again the object searching ? Thanks a lot in advance, |
Description
Running
rpi-deep-pantilt detect
I get the errorValueError: Failed to convert value into readable tensor.
What I Did
The text was updated successfully, but these errors were encountered: