Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.32 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.32 KB

AI-with-opencv

This repository will have ally my code using AI vistion capabilities using opencv
If you are looking for my AI RAG implimentation using Llama2 and PDF ducment loading look at my project here https://github.com/antonjan/local_ai_with_pdf

seting up environment for opencv

Run the following command

pip3 install -r requirements.txt

install the following libraies

pip3 install opencv-python
pip install opencv-python

For object regonition you would need a model

The COCO dataset contains over 330,000 images with more than 2.5 million object instances labeled across 80 categories.
The dataset can be downloaded from the official COCO website (http://cocodataset.org/#download).

Car detection from avi video

python3 ./car_detector.py

Alt text

Face detection form image

python3 ./face_detection.py

You should now have a file face_detected.png
open face_detected.png to see the face that was detected
Alt text

Converting pdfs with images embedid in them to text by using OCR then the brogram will create the text output

here is the link to the code [PDF image to Text converter](https://pages.github.com/