GithubHelp home page GithubHelp logo

vilib's Introduction

vilib -- Vision Library for Raspberry Pi

Image visual processing library with multiple functions such as color recognition, face recognition, hands detection, image_classification, objects_detection, Wireless video transmission, etc...

Quick Links

Docs

https://docs.sunfounder.com/projects/vilib-rpi/en/latest/index.html

Links

Install

Download this repository to your Raspberry Pi:

cd ~
git clone -b picamera2 https://github.com/sunfounder/vilib.git

Install

cd ~/vilib
sudo python3 install.py 

Usage

cd ~/vilib/examples
sudo python3 xxx.py

Stop running the example by using Ctrl+C

Update

About SunFounder

SunFounder is a technology company focused on Raspberry Pi and Arduino open source community development. Committed to the promotion of open source culture, we strives to bring the fun of electronics making to people all around the world and enable everyone to be a maker. Our products include learning kits, development boards, robots, sensor modules and development tools. In addition to high quality products, SunFounder also offers video tutorials to help you make your own project. If you have interest in open source or making something cool, welcome to join us!

Contact us

E-mail: [email protected]

vilib's People

Contributors

lovmong avatar everettrichards avatar marcgrimme avatar

Stargazers

Yangtze avatar Charlie avatar  avatar  avatar Chetan Shinde avatar  avatar  avatar  avatar Dave Durkee avatar  avatar Howell McCullough avatar Martin Gottschalg avatar

Watchers

James Cloos avatar  avatar

vilib's Issues

Running Vilib on Model B+?

I have everything working on my PiCar-X except the camera using EzBlock. I have checked out my camera using the raspistill command and all is good. I cannot get any EzBlock projects to work using Vilib. How can I get Vilib to run on model B+ rev 1.2? Is it too old? Please advise how to proceed. I have provided details below.
Thank you..

Summary:
Running the following python cmd: from vilib import Vilib fails. I believe this to be the issue that causes an EzBlock project using Vilib not to work.

python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux

from vilib import Vilib
Launching ...
Illegal instruction

Versions:
Python 3.7.3
Model: Raspberry Pi Model B Plus Rev 1.2
OS: Raspbian GNU/Linux 10 (buster)"
ezblock version: 1.2.1
EzBlock Studio: v3.2.137

Compatibility for Bullseye

Bullseye has been out for a year now, it's time to get ViLib and all dependent applications compatible with it.
It seems this shouldn't be too difficult for those very familiar with Pi, Linux and Pi's camera functions. The heart of it all appears to be in using PiCamera2 rather than PiCamera, possibly also cv2.

Support for Ubuntu 22.04?

Hey there, I wanted to know if it is possible to have support for ubuntu 22.04. My use case of the raspberry pi requires ROS to be installed and so it would be great if I can follow along in a differnt OS.

AttributeError: 'Thread' object has no attribute 'isAlive' when running sudo python3 install.py

Hello, I am trying to get setup with my picar and am getting this error when running the installation steps from the README.

picar@raspberrypi:~/vilib $ sudo python3 install.py
Start installing vilib 0.0.3 for user jose
 - dpkg configure... Traceback (most recent call last):
  File "/home/picar/vilib/install.py", line 244, in <module>
    install()
  File "/home/picar/vilib/install.py", line 153, in install
    do(msg="dpkg configure",
  File "/home/picar/vilib/install.py", line 231, in do
    while _thread.isAlive():
AttributeError: 'Thread' object has no attribute 'isAlive'

I am running with python 3.9.2 that was installed by default on my Raspbian Image. See the OS info below.

picar@raspberrypi:~/vilib $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Is it possible I should be using a different python version?

Cloned picamera2, several bugs.

following install guide from here.

I found out that the original repository wasn't compatible with my pi4 (64-bit vs 32-bit), so following instructions I modified the code to clone the picamera2 repository (git clone -b picamera2 https://github.com/sunfounder/vilib.git). This works until I get to the install.py command.

I first get the error:
Traceback (most recent call last):
File "/home/pi/vilib/install.py", line 9, in
user_name = os.getlogin()
OSError: [Errno 6] No such device or address
So I change the line user_name = os.getlogin() to user_name = os.getenv('USER'). This seems to work.

Then I get the error
Start installing vilib 0.1.0 for user root
Python version: 3.9.2
Raspbian version: 11 (64bit)

Traceback (most recent call last):
  File "/home/pi/vilib/install.py", line 188, in <module>
    elif os_bit == 64 and raspbain_version >= 11:
TypeError: '>=' not supported between instances of 'str' and 'int'

I verify that yes indeed the raspbain_version variable is a string. I make the corresponding change elif os_bit == 64 and int(raspbain_version) >= 11:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.