Giter Club home page Giter Club logo

ar_headset's Introduction

AR_headset

Managed by Zernov

README.md на русском

About

Hey! This is my own code for creating an AR/MR helmet based on Linux and Python. This thing uses MediaPipe and Cv2 for video streams. I started it only something like 2 months ago, so ain't so good Biggest framerate you can get with this code is around 30, so you should use NASA supercomputer.

Let's begin!

(Be sure you are using Python 3.11) Before running this code you should install all dependency, so you can use requirements for that:

pip install -r requirements.txt

Configuration

After installing all dependency, you can set config of application.

In the file config.ini you can find some configuration lines:

[Camera]
mode=ps5camera
# 1camera, 2camera, ps4camera (2560x800), ps5camera (3840x1080), camera_off
resolution_w=1280
resolution_h=720
first_camera_id=0
second_camera_id=1
ps5camera_id=0
ps4camera_id=0
rotate_image=False
...

Here you can set your camera type. 1camera - 1 USB UVC WEBCam.
2camera - 2 different USB UVC WEBCam's. Just cameras, nothing interesting.
ps4camera - HD (720p) stereo camera, made for Playstation 4. Works with cable and driver
ps5camera - Full HD (1080p) stereo camera for PS5. Doesn't need a cable, but needs driver camera_off - work without camera (black screen).

In the end of configuration you can turn on/off video recording, GUI, barrel_distortion and web interface:

[Options]
active_interface=True
video_recording=False
tracking_active=True
webserver_active=True
barrel_distortion=False

That's it.

RUN

After setting up all configuration variables you can check your webcam(s) and directly run this code:

python3.11 AR_HeadSet.py

or

python3 AR_HeadSet.py

Check the video

After starting code up you can check videostream by opening

yourip:5000

for example:

localhost:5000

Then you should see stream from camera and GUI

The end

ar_headset's People

Contributors

zernovtechno avatar usiqwerty avatar denatle avatar

Stargazers

dennn81 avatar Vlad avatar  avatar Denis Sochi avatar Dmitrii avatar __noname__ avatar Evgeniy Khramov avatar  avatar  avatar timas_gvozd avatar Нкита avatar  avatar Dmitrii Gusev avatar Ermakov V.N. avatar Belaya_Berёzka avatar  avatar Felix14_v2 avatar

Watchers

 avatar  avatar RenoNavare avatar  avatar

ar_headset's Issues

Поправить гайд по установке

Команда которая указана чтобы установить нужные библиотеки (pip install requirements.txt) не будет работать. Нужно добавить флаг -r

Ошибка нету атрибуты в right_actual_image.copy()

Всё установил правильно, но здесь ругается на отсутствие атрибутов
right_actual_image.copy() << здесь нужен атрибуты

Exception in thread right_eye:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/home/argenalmaz00/code/Python/AR_headset/AR_HeadSet.py", line 98, in work_right
working_with = right_actual_image.copy()
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'copy'

Help me

https://stackoverflow.com/questions/68275560/version-loaded-from-file-does-not-comply-with-pep-440/78241940#78241940

Help me /storage/emulated/0/1/mediapipe-0.10.11/MANIFEST.in

global-exclude .git*
global-exclude *_test.py

include CONTRIBUTING.md
include LICENSE
include MANIFEST.in
include README.md
include requirements.txt

recursive-include mediapipe/modules *.txt
PyDroid 3:

/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/setuptools/dist.py:315: SetuptoolsDeprecationWarning: Invalid version: 'dev'.
!!

    ********************************************************************************
    The version specified is not a valid version according to PEP 440.
    This may not work as expected with newer versions of
    setuptools, pip, and PyPI.

    This deprecation is overdue, please update your project and remove deprecated
    calls to avoid build errors in the future.

    See https://peps.python.org/pep-0440/ for details.
    ********************************************************************************

!!
self._validate_version(self.metadata.version)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: no commands supplied

[Program finished]

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.