Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
PR infos integrated
Browse files Browse the repository at this point in the history
Signed-off-by: Paulchen-Panther <[email protected]>
  • Loading branch information
Paulchen-Panther committed Sep 30, 2019
1 parent d08d63e commit 9309f9e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CompileHowto.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Install the required tools and dependencies
sudo apt-get update
sudo apt-get install git cmake build-essential libqt4-dev libusb-1.0-0-dev python-dev libxrender-dev python
sudo apt-get install git cmake build-essential libqt4-dev libusb-1.0-0-dev python-dev libxrender-dev python

# OSMC dependencies
sudo apt-get install rbp-userland-dev-osmc
Expand All @@ -15,6 +15,9 @@ export FIRMWARE_DIR="raspberrypi-firmware"
git clone --depth 1 https://github.com/raspberrypi/firmware.git "$FIRMWARE_DIR"
sudo cp -R "$FIRMWARE_DIR/hardfp/opt/" /opt

# OpenCV HDMI grabber dependencies (must be version 2.x) (check with: pkg-config --modversion opencv)
sudo apt-get install libopencv*

# create hyperion directory and checkout the code from github
# You might want to add "--depth 1" if you only want to recompile the current source or don't want to use git any further
export HYPERION_DIR="hyperion"
Expand All @@ -35,6 +38,8 @@ cmake -DCMAKE_BUILD_TYPE=Release -DPLATFORM="rpi" -Wno-dev ..
cmake -DCMAKE_BUILD_TYPE=Release -DPLATFORM="rpi-pwm" -Wno-dev ..
# or if you are not compiling on the raspberry pi (e.g. OrangePi) and need to disable the Dispmanx grabber and support for spi devices
cmake -DENABLE_DISPMANX=OFF -DENABLE_SPIDEV=OFF -DENABLE_X11=ON -DCMAKE_BUILD_TYPE=Release -Wno-dev ..
# to enable the HDMI OpenCV grabber append cmake parameter
ENABLE_OPENCV=ON
# on amlogic platforms
cmake -DENABLE_DISPMANX=OFF -DENABLE_SPIDEV=OFF -DENABLE_AMLOGIC=ON -DCMAKE_BUILD_TYPE=Release -Wno-dev ..
# as an alternative for the dispmanx grabber on non-rpi devices (e.g. cubox-i) you could try the framebuffer grabber
Expand Down
15 changes: 15 additions & 0 deletions config/hyperion.config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,21 @@
"blueSignalThreshold" : 0.0
},

/// Configuration for the embedded OpenCV grabber
/// * input : integer id of input device [default= 0]
/// * width : optional resolution (note: will force OpenCV to capture in that resolution) [default=0]
/// * height : optional resolution (note: will force OpenCV to capture in that resolution) [default=0]
/// * frequency_Hz : optional capture frequency [defaults=10]
/// * priority : optional hyperion priority channel [default=900]
"opencvgrabber" :
{
"input" : 0,
"width" : 0,
"height" : 0,
"frequency_Hz" : 10,
"priority" : 900
},

/// The configuration for each individual led. This contains the specification of the area
/// averaged of an input image for each led to determine its color. Each item in the list
/// contains the following fields:
Expand Down

0 comments on commit 9309f9e

Please sign in to comment.