Skip to content

Software for tactile elevation and integration with hardware

Notifications You must be signed in to change notification settings

Williamarvin/TacOR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please unzip before running the code file.

This folder contains 2 major code file
- the edge_test.py run on laptop
- the device_operate.ino running on Arduino UNO3

-------------------------------------------------------------------
Please install the follow dependecies for edge_test.py

python 3.10.9
opencv 4.7.0.68 
pyserial 3.5
opencv-python
numpy
pyserial
pillow
argparse

-run the python file which will automatically run the sample image
under the same folder diretory and send the extracted info to the arduino

-before execute, make sure arduino connected to laptop. And the Arduino
IDE (editor) is closed and not using the COM port.

-if error happened, most likely is the wrong COM port selected or no port found.
need to check on which port the arduino connected to.
--------------------------------------------------------------------
device_operate.ino

There is no need to compile and upload to arduino again. the device should
have memory on last upload

This file is just for you to set upp the physical cables with the
corresponding pins and locations of the LED matrix

version python 1.10.11

Install 
conda install -c conda-forge opencv
conda install -c anaconda pyserial
conda install -c anaconda pillow 
conda install -c conda-forge gtts 
conda install -c conda-forge pydub
conda install -c conda-forge ffmpeg
pip install "rembg[cli]"

For running with object detection webcam: python -u "/Users/williamfisilo/Desktop/Tactilesys/Tactile_backend/edge_test.py"
For only object detection: cd darknet && ./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg && cd ..

run this for object detection plan
cd darknet
./darknet detector test cfg/coco.data cfg/yolov3.cfg yolov3.weights /Users/williamfisilo/Downloads/test2/data/temp/camera_capture_0.jpg


//still in progress

simplify the process

using parse, able to use custom paths now
python edge_test.py -i <image>
EXAMPLE:
python edge_test.py -i /Users/williamfisilo/Desktop/Tactilesys/tactile_backend/data/temp/camera_capture_0.jpg

Normal yolo testing
python detect.py --weights yolov5s.pt --source 0

complete process 
git status
git add .
git commit -m "message"
git push

to revert
git restore --staged .

hello

About

Software for tactile elevation and integration with hardware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published