to save electricity or lengthen the lifetime of the servo motor, is it possible to add motion sensor first before switch on the camera module? so, the motion sensor would be the first layer security, then camera will catch that motion in sentry mode -> face recognition ! just my two cents!
I wonder if a stepper motor could be used instead? The only thing I could compare it to is how smooth a c-ram / CIWS operates. (Minus all the weapons). I think it would look amazing if that was possible to setup something like that, with a project like this. It seems like the OpenCV you use, works great.
@@Core-Electronicsis there a way to record and save the live feed video? I want to build a surveillance camera and need to be able to record the video and save so it can be accessed later
@@Core-Electronics .. Hi could you develop this into an even more advanced version, To be built similar to the predator's shoulder-visor, But attached to an eye-head-piece? To have nightvision/Infrared & Tracking at like in this video? Do you do commissions?
My pi camera is responding very slow.. I m using rpi 4 model b 4 gb...how can I reduce the response time? Like I m waving my hand in front of picamera and it shows after 3 to 4 seconds
That is very slow. To start make sure your Raspberry Pi is getting enough cooling, active cooling would definitely help. As soon as the board gets Hot it'll start going slow. In software you can also lower the pixel count, that will drastically improve reaction time. Hopefully that helps. If hardware is holding you back take a look at the OAK-D Lite, it is quite a remarkable AI Camera compatable with Raspberry Pi Single Board Computers - th-cam.com/video/7BkHcJu57Cg/w-d-xo.html
Hello, do you happen to know what piece of code i would need to change to use different servos? For context i have a rpi adafruit 16 channel servo hat from your other video. I would like to use that to host my servos but wondering what i need to adjust to use that instead of the board in this video
Any advice on using this base in a SAR have application. Particularly night time wild game census taking. I want to build a diy eo/it up to 4 sensors. LWIR thermal sensor; RGB spectral with adaptive zoom, and LRF laser range finder are the big three. I need the computer to run BG separation, temperature threshold, and object recognition. end result should be a dark granular background; only things above threshold have color, and camera and gimbal zoom and move to keep target in frame. The info is not readily available out there, I’m picking from 15 year old experience, and articles buried deep on the internet. This stuff isn’t restricted or illegal, but there’s definitely an unspoken agreement to not make it readily available
Now that makes for an amazing project! DIY object detection and face tracking is in its infancy but I have no doubt people will keep pushing the thresholds on what is possible. If you do nail your plans please share 😊 it would make for an incredibly powerful tool for all kinds of applications.
Hey, followed all the instructions but this error keeps coming up. enabled i2c, but problem persists ? Any solutions? File "/home/pi/track/facetracker.py", line 37, in pan(cam_pan-90) File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 466, in servo_one self.setup() File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 80, in setup self._set_config() File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 118, in _set_config self._i2c_write_byte(self.REG_CONFIG, config) File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 209, in _i2c_write_byte raise IOError("Failed to write byte") OSError: Failed to write byte
Depending on the current draw you may want an extra power input. Check this guide for wiring tips with a servo and a Raspberry Pi 4 Model B - core-electronics.com.au/guides/control-servo-raspberry-pi/
Question: If you disconnect the internet from it, will it still work on tracking moving objects without its connection to the internet, or should it be connected to the internet in order to continue tracking the movement of objects, and if it works, can we make a project to track an object using Arduino Uno
Big Question! The AI system when looking for faces I'm pretty sure goes from top left to right then down one row and repeats. If I was to guess the person in the top left of the preview window would be targeted first. Only one way to find out for sure though, Test it!
Hi I have the head (eyes) from inmoov robot but without pimoroni picade pan tilt Hat. I connected directly to Raspberry pi. So i need not download software for it? What i must change from your example. Can you help me?
ik im a bit late but i want to implement a doppler radar (for increased range). and the radar detects movement somewhere, so it tells the pan tilt to point the camera to the area with detected movement. how would i modify this code?
I'm planning to use the same concept but instead of tracking face, I want to track Sun. Is the execution is still the same? I have a pytorch pretrained model currently.
Great work I have been looking for a way to add this functionality to the Digital Bird DIY camera control system and this might just be what i'm looking for. Do you see any problem using an HDMI to Pi4 camera board in place of the Pi camera?
thats a very nice code i see here ! nice work ... question, i want to install this system on a ceiling ... i would add an x y and z axes on the ceiling moving the camera and the rest of its components, how can i add some more code to control the movement of the xyz axes together with the face tracking movements. THANNKS !
I have a simple Keyboard PAN-TILT Hat control system that you can see here - core-electronics.com.au/guides/pan-tilt-hat-raspberry-pi/ Combining that Script and the one talked about here should get you moving in the right direction. If you need a hand with the Python Language hit up our Workshop - core-electronics.com.au/courses/python-workshop/
Great video! Quick question: Are we able to use the HAT without directly mounting onto the Pi so that the other RPi pins aren't covered and may be connected to other outputs (e.x. to control a relay or LEDs). Meaning if we mount the hat to a breadboard instead and use jumper wires to connect the 5V pin and 3 GPIO pins (2,3,16) from the RPi, will this still work?
This is the GPIO Pins utilised by the HAT - pinout.xyz/pinout/pan_tilt_hat So long as you connect the Pan-Tilt HAT to those required pins it will work. Whether it is installed as a HAT or on a Breadboard. You are then able to use the other free GPIO Pins to control whatever you desire 😊.
hi great video and thanks for the compelte explain im wondering have you ever create project with raspi+usb cam to counting people in a room? best regards from me
I've done some work with the OAK-D Lite and one of the machine learnt systems that it runs counts people in a room/as they wall past. Once you locate the exact Python script you'll be able to base your code in your system on that 😊 - core-electronics.com.au/guides/raspberry-pi/oak-d-lite-raspberry-pi/
I've seen thermal cameras run with face/human detection - th-cam.com/video/hpyW4LwhL44/w-d-xo.html For this Pan-Tilt system if you added a Laser Thermometer you could definitely achieve that goal - core-electronics.com.au/non-contact-ir-thermometer-sensor.html
If your running into issues or want help with your project the best place for us to help is on our forum and as we'll be better able to help 🙂 forum.core-electronics.com.au/
Hİ, In the "make -j $(nproc)" command, the loading process may take a very long time, even the screen may freeze, you wrote on your page. It came up to seven percent, then the screen froze, I'm being patient as you said, but it's been 2 hours, is it normal? :) should ı wait?
2 Hours is definitely tooo long. Give the system a hard power cycle then type that same "make -j $(nproc)" command into a new terminal with it focused on the right folder structure. So it will be the following. cd ~/opencv-4.4.0/build make -j $(nproc)
Is definitely the easiest way to set up a Pan-Tilt System with a Raspberry Pi. There are other Pan-Tilt Hats but you will need to adjust the code running the system to accommodate for them. If your only interested in Face Identification come check out this - core-electronics.com.au/guides/face-identify-raspberry-pi/
You can definitely replace the face detection layer with a object detection layer that focuses just on human bodies 🙂It would take some tinkering with the Python code. Check out this guide on how to set up object detection - core-electronics.com.au/tutorials/object-identify-raspberry-pi.html
Because the computation is so high with computer vision project like this I would reccomend using the Raspberry Pi 4, the delay using a Pi Zero I reckon would be too great for functional use.
hello sir love from india i have following on youtube since last year very knowledgeable channel is running you come to the point . I need you help on one of my project I am trying to develop face recognition system that system can identify people either he/she in database or not but I didn't get any specific resources I hope you help me out thanks
Sorry to hear you are having issues, I haven't seen that error message before, we have a forum for this guide that might have some helpful information, and if not feel free to chuck a post on their with your issue. Give us a bit of details about your setup and where it goes wrong, we have lots of maker-eyes over there that can help. core-electronics.com.au/guides/Face-Tracking-Raspberry-Pi/
When people talk with horror about facial recognition and mining done by the big data companies and government, I point to openCV and say this tech can be done by anyone, so evil is now dramatically easy for anyone to do. And with the Pu, cheap too!
hello bro , im new on raspberry pi (still waiting till i get zero w ) , im using pycharm on windows 10 to code with python , i dont know how to set up everything on raspberry pi so can u help me or link me where i can learn everything step by step? need to use rpi zero w with my codes from pc
@@Core-Electronics thx 🙏 sorry for another question but i have to , could u help me to find tutorial or library or software to control action of robotic , for example i made rpi dog and want to make easy virtual motion and want to use that on real live rpi dog? pls help one more time ❤️
All depends on what hardware your using to control the movement of the Robot. If your using Servos this is a great starting point - core-electronics.com.au/tutorials/control-servo-raspberry-pi.html
📺💬 Face recognition by raspberry pi, face detection is paused when you create a new alignment from the center. 🥺💬 You are correct that is for speed, you need to read about machine learning for face recognition task it is multiple convolution layers as filters do and dense layers with learning weight which means you can make it smarter as Google neurons net but it will require a lot of processes. 🥺💬 I think it is by the program intention to be able to run on raspberry pi, can you try adjusting parameters or mode⁉ 📺💬 How about this ⁉ 🥺💬 You may using stack frames it will little bit slow but good with moving object. 📺💬 Threshold sensitivity 🥺💬 Same as filters but you use the standards training from factory or pre-trained weights. 📺💬 I know about that. 🥺💬 It can be contrast colours but it also can be object weights or other function as weights that we called pre-trained weights.
The problem i have with all these you tube videos is they're never real world. Been trying to do this for 6 months and move two 6 volt servos not a pan tilt well yes but 12 inches long which NOPE, never happens. So my robot neck sits their gathering dust.
Hey iam ur big fan of your work iam doing an real time traffic light signal project with raspberry 3B+ modiule but i have many things to ask can u pls support me
Hey, we don't do much over TH-cam comments, but we have a forum that you can post your project on. We have lots of makers over there that can help out! forum.core-electronics.com.au/
This channel has literally everything, thank you!
This channel is amazing!
to save electricity or lengthen the lifetime of the servo motor, is it possible to add motion sensor first before switch on the camera module? so, the motion sensor would be the first layer security, then camera will catch that motion in sentry mode -> face recognition ! just my two cents!
Very rad idea!
very inspiring , well explained, I love this channel
Thanks to you 😊 glad you dig it
Thank you for your video. Do you think the set-up also works with the Raspberry Pi High Quality Camera? Or would it be to heavy for the pan-tilt hat?
I couldn’t get my hands on Pimoroni Pan tilt hat but I have a ordinary pan tilt bracket. Can you please suggest me how can I manage with that.
I wonder if a stepper motor could be used instead? The only thing I could compare it to is how smooth a c-ram / CIWS operates. (Minus all the weapons). I think it would look amazing if that was possible to setup something like that, with a project like this. It seems like the OpenCV you use, works great.
Absolutely mate 😊 the AI system can remain the same and it can totally be ported to control stepper motors.
@@Core-Electronicsis there a way to record and save the live feed video? I want to build a surveillance camera and need to be able to record the video and save so it can be accessed later
@@Core-Electronics .. Hi could you develop this into an even more advanced version, To be built similar to the predator's shoulder-visor, But attached to an eye-head-piece? To have nightvision/Infrared & Tracking at like in this video? Do you do commissions?
My pi camera is responding very slow.. I m using rpi 4 model b 4 gb...how can I reduce the response time? Like I m waving my hand in front of picamera and it shows after 3 to 4 seconds
That is very slow. To start make sure your Raspberry Pi is getting enough cooling, active cooling would definitely help. As soon as the board gets Hot it'll start going slow.
In software you can also lower the pixel count, that will drastically improve reaction time. Hopefully that helps.
If hardware is holding you back take a look at the OAK-D Lite, it is quite a remarkable AI Camera compatable with Raspberry Pi Single Board Computers - th-cam.com/video/7BkHcJu57Cg/w-d-xo.html
@@Core-Electronics thanks ..I will do the same
Nice video bro, one question, could a USB camera be used instead of the one you used?
The code will require some tinkering with but you absolutely can 😊 all the Scripts are open source so feel free to modify away.
Hello, do you happen to know what piece of code i would need to change to use different servos? For context i have a rpi adafruit 16 channel servo hat from your other video. I would like to use that to host my servos but wondering what i need to adjust to use that instead of the board in this video
Any advice on using this base in a SAR have application. Particularly night time wild game census taking. I want to build a diy eo/it up to 4 sensors. LWIR thermal sensor; RGB spectral with adaptive zoom, and LRF laser range finder are the big three. I need the computer to run BG separation, temperature threshold, and object recognition. end result should be a dark granular background; only things above threshold have color, and camera and gimbal zoom and move to keep target in frame. The info is not readily available out there, I’m picking from 15 year old experience, and articles buried deep on the internet. This stuff isn’t restricted or illegal, but there’s definitely an unspoken agreement to not make it readily available
Now that makes for an amazing project! DIY object detection and face tracking is in its infancy but I have no doubt people will keep pushing the thresholds on what is possible. If you do nail your plans please share 😊 it would make for an incredibly powerful tool for all kinds of applications.
Hey, followed all the instructions but this error keeps coming up.
enabled i2c, but problem persists ?
Any solutions?
File "/home/pi/track/facetracker.py", line 37, in
pan(cam_pan-90)
File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 466, in servo_one
self.setup()
File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 80, in setup
self._set_config()
File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 118, in _set_config
self._i2c_write_byte(self.REG_CONFIG, config)
File "/usr/lib/python3/dist-packages/pantilthat/pantilt.py", line 209, in _i2c_write_byte
raise IOError("Failed to write byte")
OSError: Failed to write byte
Were u able to figure this out? Having the same issue
Doesn’t this hat block all the other GPIO pins? Kind of makes it impractical to add this for a robot or other projects.
Thank you so much.
Could you please do eyes tracking
would this work if i ran the software on an orange pi 5? as long as i installed all the cameras and required stuff.
Great video, but can I use the code with my dynamixel servos?
Absolutely, you will just need to alter some specifics in Python so that way your servos gets the right PWM signals sent to them.
Depending on the current draw you may want an extra power input. Check this guide for wiring tips with a servo and a Raspberry Pi 4 Model B - core-electronics.com.au/guides/control-servo-raspberry-pi/
If installing the binaries with those sudo codes, may I ask you any alternatives?
Not 100% sure what you mean, but if you go through all the steps your setup will be good to go!
Question: If you disconnect the internet from it, will it still work on tracking moving objects without its connection to the internet, or should it be connected to the internet in order to continue tracking the movement of objects, and if it works, can we make a project to track an object using Arduino Uno
when two are identified, which person is identified first?????
Big Question! The AI system when looking for faces I'm pretty sure goes from top left to right then down one row and repeats. If I was to guess the person in the top left of the preview window would be targeted first.
Only one way to find out for sure though, Test it!
Hi
I have the head (eyes) from inmoov robot but without pimoroni picade pan tilt Hat.
I connected directly to Raspberry pi.
So i need not download software for it?
What i must change from your example.
Can you help me?
ik im a bit late but i want to implement a doppler radar (for increased range). and the radar detects movement somewhere, so it tells the pan tilt to point the camera to the area with detected movement. how would i modify this code?
I'm planning to use the same concept but instead of tracking face, I want to track Sun. Is the execution is still the same? I have a pytorch pretrained model currently.
can it be implemented by using mobile as camera module????
Sounds advanced but you definitely could
Hii , does Open CV is to be need open on system for working of tracker , does it still work after just installing code on rasberry pi?
You need the Open-CV packages to be installed so that it can do the face and movement detection aspects of the code
Great work I have been looking for a way to add this functionality to the Digital Bird DIY camera control system and this might just be what i'm looking for. Do you see any problem using an HDMI to Pi4 camera board in place of the Pi camera?
Could you build one of these for me, Like a commission? But with some added fearues?
thats a very nice code i see here ! nice work ... question, i want to install this system on a ceiling ... i would add an x y and z axes on the ceiling moving the camera and the rest of its components, how can i add some more code to control the movement of the xyz axes together with the face tracking movements. THANNKS !
I have a simple Keyboard PAN-TILT Hat control system that you can see here - core-electronics.com.au/guides/pan-tilt-hat-raspberry-pi/
Combining that Script and the one talked about here should get you moving in the right direction. If you need a hand with the Python Language hit up our Workshop - core-electronics.com.au/courses/python-workshop/
Hey can you give me a link to the things i need to buy?
Would this work with a raspberry pi 4B 4GB or does it need to have 8GB?
It will definitely work with lower RAM Raspberry Pi 4 Model B 😊
Will this work on an Orange Pi 5?
Great video! Quick question: Are we able to use the HAT without directly mounting onto the Pi so that the other RPi pins aren't covered and may be connected to other outputs (e.x. to control a relay or LEDs). Meaning if we mount the hat to a breadboard instead and use jumper wires to connect the 5V pin and 3 GPIO pins (2,3,16) from the RPi, will this still work?
This is the GPIO Pins utilised by the HAT - pinout.xyz/pinout/pan_tilt_hat
So long as you connect the Pan-Tilt HAT to those required pins it will work. Whether it is installed as a HAT or on a Breadboard. You are then able to use the other free GPIO Pins to control whatever you desire 😊.
i dont have pimoroni pan tilt hat but another one. can you tell me how to directly connect servos to rPi
can we make a 4 dof(using servo motors) robotic arm for pick and place small objects using pi camera to detect object
Ni usama
Is it tracking face without computer?
All the face figuring out/calculations are done on the Raspberry Pi Single Board Computer 😊
Sir can we use Raspberry Pi 3 in the place of Raspberry Pi 4
THANK YOU so much for this 🙏🙌
No problem 😊
hi great video and thanks for the compelte explain
im wondering have you ever create project with raspi+usb cam to counting people in a room?
best regards from me
I've done some work with the OAK-D Lite and one of the machine learnt systems that it runs counts people in a room/as they wall past. Once you locate the exact Python script you'll be able to base your code in your system on that 😊 - core-electronics.com.au/guides/raspberry-pi/oak-d-lite-raspberry-pi/
Is it possible in Pi 3 as well? Please answer
This is great thanks
So good, thanks for sharing.
Glad you enjoyed it!
Sorry you answered my question at the beginning of the video
will it be implemented using pi4 and 3
Its possible to detect the faces with temperatures? Thanks
I've seen thermal cameras run with face/human detection - th-cam.com/video/hpyW4LwhL44/w-d-xo.html
For this Pan-Tilt system if you added a Laser Thermometer you could definitely achieve that goal - core-electronics.com.au/non-contact-ir-thermometer-sensor.html
@@Core-Electronics Can i contact you on gmail?
@@Core-Electronics I saw now the SENO206? Did you know how to do that with temperature sensor?
If your running into issues or want help with your project the best place for us to help is on our forum and as we'll be better able to help 🙂 forum.core-electronics.com.au/
@@Core-Electronics do you have any idea how to get face detection with temperatures using adafruit mlx90640 using raspberry pi?
Hİ, In the "make -j $(nproc)" command, the loading process may take a very long time, even the screen may freeze, you wrote on your page. It came up to seven percent, then the screen froze, I'm being patient as you said, but it's been 2 hours, is it normal? :) should ı wait?
2 Hours is definitely tooo long. Give the system a hard power cycle then type that same "make -j $(nproc)" command into a new terminal with it focused on the right folder structure. So it will be the following.
cd ~/opencv-4.4.0/build
make -j $(nproc)
Is the hat absolutely necessary?
Is definitely the easiest way to set up a Pan-Tilt System with a Raspberry Pi. There are other Pan-Tilt Hats but you will need to adjust the code running the system to accommodate for them.
If your only interested in Face Identification come check out this - core-electronics.com.au/guides/face-identify-raspberry-pi/
did the code can tracking after full body not just face?
You can definitely replace the face detection layer with a object detection layer that focuses just on human bodies 🙂It would take some tinkering with the Python code. Check out this guide on how to set up object detection - core-electronics.com.au/tutorials/object-identify-raspberry-pi.html
@@Core-Electronics i need a full body not faces is it possible?
Come check this out mate - core-electronics.com.au/tutorials/pose-and-face-landmark-raspberry-pi.html
I can do this using a USB camera, instead of one (opencv ai kit)
H I would this work with the 16 servo control board and camera module or would I need to change the code. I have pan and tilt mount.
i have the same question!
руки індуса в нього це така фішка? типу якщо відео технічне і не від індуса дивитися не будуть?
Can I use raspberry pi zero to do this?
Because the computation is so high with computer vision project like this I would reccomend using the Raspberry Pi 4, the delay using a Pi Zero I reckon would be too great for functional use.
@@Core-Electronics Maybe a Pi Zero 2 W? (If you can get one...)
can ı do this with raspberry pi 3 model b+ ?
It definitely will, just at a slower FPS.
@@Core-Electronics that's fine, as long as there's no conflict in the code :) thank you..
hello sir love from india i have following on youtube since last year very knowledgeable channel is running you come to the point . I need you help on one of my project I am trying to develop face recognition system that system can identify people either he/she in database or not but I didn't get any specific resources I hope you help me out thanks
lol no.
Hi great video where can I get the coding for it
Hey, its in our guide linked below.
Also here: core-electronics.com.au/guides/Face-Tracking-Raspberry-Pi/
Hello what do I do with this? VIDIOC_S_PARM: failed: Inappropriate ioctl for device
I am using picamera v2.1
Sorry to hear you are having issues, I haven't seen that error message before, we have a forum for this guide that might have some helpful information, and if not feel free to chuck a post on their with your issue. Give us a bit of details about your setup and where it goes wrong, we have lots of maker-eyes over there that can help.
core-electronics.com.au/guides/Face-Tracking-Raspberry-Pi/
This is so amazingggggggggggggggggg
When people talk with horror about facial recognition and mining done by the big data companies and government, I point to openCV and say this tech can be done by anyone, so evil is now dramatically easy for anyone to do. And with the Pu, cheap too!
.. Actually this can be turned into a self-defense weapon with a multitude of functgions.. So its not 'Evil' in the hands of good people.
hello bro , im new on raspberry pi (still waiting till i get zero w ) , im using pycharm on windows 10 to code with python , i dont know how to set up everything on raspberry pi so can u help me or link me where i can learn everything step by step? need to use rpi zero w with my codes from pc
Hey mate, an absolutely great starting point is our Raspberry Pi Workshop - core-electronics.com.au/tutorials/raspberry-pi-workshop-for-beginners.html
@@Core-Electronics thx 🙏 sorry for another question but i have to , could u help me to find tutorial or library or software to control action of robotic , for example i made rpi dog and want to make easy virtual motion and want to use that on real live rpi dog? pls help one more time ❤️
All depends on what hardware your using to control the movement of the Robot. If your using Servos this is a great starting point - core-electronics.com.au/tutorials/control-servo-raspberry-pi.html
📺💬 Face recognition by raspberry pi, face detection is paused when you create a new alignment from the center.
🥺💬 You are correct that is for speed, you need to read about machine learning for face recognition task it is multiple convolution layers as filters do and dense layers with learning weight which means you can make it smarter as Google neurons net but it will require a lot of processes.
🥺💬 I think it is by the program intention to be able to run on raspberry pi, can you try adjusting parameters or mode⁉
📺💬 How about this ⁉
🥺💬 You may using stack frames it will little bit slow but good with moving object.
📺💬 Threshold sensitivity
🥺💬 Same as filters but you use the standards training from factory or pre-trained weights.
📺💬 I know about that.
🥺💬 It can be contrast colours but it also can be object weights or other function as weights that we called pre-trained weights.
I made similar
The problem i have with all these you tube videos is they're never real world. Been trying to do this for 6 months and move two 6 volt servos not a pan tilt well yes but 12 inches long which NOPE, never happens. So my robot neck sits their gathering dust.
Hey iam ur big fan of your work iam doing an real time traffic light signal project with raspberry 3B+ modiule but i have many things to ask can u pls support me
Hey, we don't do much over TH-cam comments, but we have a forum that you can post your project on. We have lots of makers over there that can help out!
forum.core-electronics.com.au/
Now just add a glock 17 and ur all set free aimbot
Ima use this shit to build an airsoft sentry
Can I use a Raspberry pi 3A+???
It should work 😊 you may need to overclock that Pi a little bit to keep up with the computational demands.