and what should modify in the face_recognition.sh file to accept rtsp camera as source
- Configure RTSP Source: You will need to set up the RTSP source within the script. This typically involves defining the RTSP URL as a variable. For example, you can add a line like this at the beginning of your script:
readonly SRC_RTSP="rtsp://<ip address>/?h264x=4 user-id=<username> user-pw=<password>"
Replace <ip address>
, <username>
, and <password>
with the actual IP address, username, and password of your RTSP camera.
- Modify the GStreamer Pipeline: In the script, locate the GStreamer command or configuration where the video source is specified. Replace the existing source with the RTSP source variable you defined. For example, if the original line in the script was something like:
gst-launch-1.0 filesrc location=detection.mp4 ! decodebin ! videoconvert ! appsink
You would change it to:
gst-launch-1.0 rtspsrc location=${SRC_RTSP} ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! appsink
i am runing this on raspberry pi5 i am using tappas github repo
hi i has changed and run but it giving error trinity@raspberrypi:~/tappas/apps/h8/gstreamer/general/face_recognition $ ./face_recognition.sh
[HailoRT] [error] CHECK failed - Failed open /sys/class/hailo_chardev/hailo0/accelerator_type
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36) - Failed parsing device info for hailo0
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT CLI] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
@omria i want confirmation can i run tappas examples like face-recognization in raspbbery pi5 hailo-kit plz confirm this
Hello @vinaygouda.ttssl,
It seems you’re encountering a driver-related issue. To resolve this, please follow these steps:
- Clean your environment:
- Remove the current Hailo PCIe driver and HailoRT driver installations.
- Rebuild the drivers:
- Reinstall the Hailo PCIe driver
- Reinstall the HailoRT driver
Make sure to follow the official Hailo documentation for the correct installation procedures.
Regarding your face recognition application:
- The face recognition functionality should work properly on the Raspberry Pi Hailo-8L kit once you’ve resolved the driver issue.
plz can you give elobrated step for reinstalling and cleaning environment
check out here : Can't install Hailo PCI driver
i getting this error trinity@raspberrypi:~ $ sudo dpkg --install hailort-pcie-driver_4.18.0_all.deb
Selecting previously unselected package hailort-pcie-driver.
(Reading database … 160920 files and directories currently installed.)
Preparing to unpack hailort-pcie-driver_4.18.0_all.deb …
Could not test for SecureBoot, assuming SecureBoot is disabled on this machine.
Unpacking hailort-pcie-driver (4.18.0) …
Setting up hailort-pcie-driver (4.18.0) …
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
build-essential/stable,now 12.9 arm64 [installed]
Do you wish to use DKMS? [Y/n]:
Failed. Exited with status 2. See /var/log/hailort-pcie-driver.deb.log
dpkg: error processing package hailort-pcie-driver (–install):
installed hailort-pcie-driver package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
hailort-pcie-driver
It appears you’re facing an issue that could be due to either a corrupted file or incomplete removal of previous Hailo PCIe files. To resolve this and ensure a smoother installation process, please follow these steps:
- Thoroughly purge all existing Hailo PCIe files from your system. This ensures a clean slate for the new installation.
- Install DKMS (Dynamic Kernel Module Support) before proceeding with the Hailo PCIe driver installation. DKMS will help manage kernel modules more effectively, especially across kernel updates.
- After installing DKMS, proceed with the Hailo PCIe driver installation.
This approach should provide a more stable and consistent setup. If you encounter any specific errors during this process, please share them so we can provide more targeted assistance.
can you plz provied each step for removing Hailo PCIe files
hailo-all 3.28.2+1
hailo-tappas-core-3.28.2 3.28.2
hailofw 4.17.0-2
hailort 4.17.0
hicolor-icon-theme 0.17-2
so my problem is to update hailort 4.17.0 to 4.18.0 for runimg tappas so now how can i update it
and all these steps are i am runing on raspberry pi5 ai kit
trinity@raspberrypi:~ $ hailortcli fw-control identify
[HailoRT] [warning] FW is not loaded to the device. Please load FW before using the device.
Executing on device: 0000:01:00.0
[HailoRT] [error] CHECK failed - Failed in fw_control, errno:19
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FW_CONTROL_FAILURE(18) - Failed to send fw control
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FW_CONTROL_FAILURE(18)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FW_CONTROL_FAILURE(18)
[HailoRT CLI] [error] CHECK_SUCCESS failed with status=HAILO_FW_CONTROL_FAILURE(18) - Failed identify
Failed to execute on device: 0000:01:00.0. status= HAILO_FW_CONTROL_FAILURE(18)
i also geting this erorr plz suggest me how to solve it
To thoroughly purge all existing Hailo PCIe files from your system, you can follow these steps. This process will help ensure a clean slate for the new installation:
is it correct steps for the 1. Thoroughly purge all existing Hailo PCIe files from your system. This ensures a clean slate for the new installation.
1. Uninstall the Hailo Software Package
- If you installed the Hailo software package using a package manager like
apt
,yum
, or similar, you should first uninstall it:- For Debian/Ubuntu:
bash
Copy code
sudo apt-get remove --purge hailo*
- For CentOS/Red Hat:
bash
Copy code
sudo yum remove hailo*
2. Remove Installed Binaries
- Delete any binaries or executables related to Hailo that may be in standard system paths:
bash
Copy code
sudo rm -rf /usr/local/bin/hailo*
sudo rm -rf /usr/bin/hailo*
3. Remove Hailo Libraries
- Delete any Hailo-related libraries from your system library paths:
bash
Copy code
sudo rm -rf /usr/local/lib/hailo*
sudo rm -rf /usr/lib/hailo*
4. Remove Hailo Configuration Files
- If there are any configuration files or directories related to Hailo in
/etc
, remove them:
bash
Copy code
sudo rm -rf /etc/hailo*
5. Remove Hailo Directories
- Delete any directories that might contain Hailo-related files, including logs or additional data:
bash
Copy code
sudo rm -rf /opt/hailo*
sudo rm -rf /var/lib/hailo*
sudo rm -rf /var/log/hailo*
6. Clean Up Environment Variables
- If you added any Hailo-specific paths or environment variables in
.bashrc
,.zshrc
, or any other shell configuration files, open these files and remove the lines. - After editing, reload the shell configuration:
bash
Copy code
source ~/.bashrc
- For other shells, use the corresponding command (e.g.,
source ~/.zshrc
).
7. Reboot the System
- Reboot your system to ensure that all changes take effect and any remaining Hailo processes are terminated:
bash
Copy code
sudo reboot
After completing these steps, your system should be free of any Hailo PCIe-related files, providing a clean environment for a fresh installation.
is it correct steps for 2.Install DKMS (Dynamic Kernel Module Support) before proceeding with the Hailo PCIe driver installation. DKMS will help manage kernel modules more effectively, especially across kernel updates.
Install DKMS (Dynamic Kernel Module Support) before proceeding with the Hailo PCIe driver installation. DKMS will help manage kernel modules more effectively, especially across kernel updates.
ChatGPT said:
ChatGPT
To install DKMS (Dynamic Kernel Module Support) on your system, follow these steps:
1. Update Your Package List
- First, update your system’s package list to ensure you have the latest versions of the packages:
bash
Copy code
sudo apt-get update
- On CentOS/Red Hat:
bash
Copy code
sudo yum update
2. Install DKMS
- On Debian/Ubuntu-based systems:
bash
Copy code
sudo apt-get install dkms
- On CentOS/Red Hat-based systems:
bash
Copy code
sudo yum install dkms
- For other distributions, use the equivalent package manager (e.g.,
zypper
for openSUSE,dnf
for Fedora).
3. Verify DKMS Installation
- After the installation is complete, verify that DKMS is installed correctly by checking its version:
bash
Copy code
dkms --version
- This should display the DKMS version installed on your system.
4. Proceed with Hailo PCIe Driver Installation
- Once DKMS is installed, you can proceed with the installation of the Hailo PCIe driver. The DKMS framework will automatically manage the Hailo kernel module during kernel updates, ensuring that the driver is properly recompiled and reinstalled if necessary.
Please give suggestion as fast as possible
is it correct for 3.After installing DKMS, proceed with the Hailo PCIe driver installation.
ChatGPT said:
ChatGPT
To proceed with the Hailo PCIe driver installation after installing DKMS, follow these steps:
1. Download the Hailo PCIe Driver
- Obtain the latest Hailo PCIe driver package from the official Hailo website or the repository where it is hosted.
- Download the package to your local system.
2. Extract the Driver Package
- If the driver package is compressed (e.g.,
.tar.gz
), extract it:
bash
Copy code
tar -xzf hailo-pcie-driver.tar.gz
- Navigate to the extracted directory:
bash
Copy code
cd hailo-pcie-driver
3. Install the Hailo PCIe Driver Using DKMS
- To install the Hailo PCIe driver using DKMS, run the following commands:
bash
Copy code
sudo dkms add .
sudo dkms build hailo-pcie/1.0
sudo dkms install hailo-pcie/1.0
- Replace
1.0
with the correct version number if it differs.
4. Load the Driver
- After installing the driver, load it into the kernel:
bash
Copy code
sudo modprobe hailo-pcie
- Check if the driver is loaded correctly:
bash
Copy code
lsmod | grep hailo
5. Verify the Installation
- You can verify if the PCIe driver is installed and functioning properly by checking the devices:
bash
Copy code
lspci | grep Hailo
- This should list the Hailo PCIe device, indicating that the driver is correctly installed.
6. Reboot the System (Optional)
- While not always necessary, it’s sometimes a good idea to reboot the system to ensure that the driver is properly loaded during the boot process:
bash
Copy code
sudo reboot
7. Test the Installation
- Run any provided test utilities or scripts to confirm that the Hailo PCIe card is working as expected.
Please give suggestion as fast as possible
The things you provided from chatGPT , dont solve the issue and doesn’t install the hailo driver as we recommend.
I recommend you to reset your RPI kit , then re install everything while doing it the recommended way , because it seems something in the driver installation went wrong.
For more info about this please check out :
reset RPI kit means?
can a[quote=“vinaygouda.ttssl, post:19, topic:2632, full:true”]
reset RPI kit means?
[/quote]
can any one explain