Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for FLIR ONE G3 camera #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
src/flirone.o
flirone.o
flirone
21 changes: 13 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
CC = gcc -I/usr/include/libusb-1.0
GXX = g++
CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -lusb-1.0 -lm
INCPATH = -I. -I/usr/include/libusb-1.0
SANITIZERS ?= -fsanitize=address -fsanitize=undefined \
-fsanitize=pointer-compare -fsanitize=pointer-subtract \
-fsanitize=leak -fno-sanitize-recover=all \
-fsanitize-address-use-after-scope \
-fstack-protector-all \
-fstack-protector-strong

all: flirone.o flirone
INCPATH = -I/usr/include/libusb-1.0
CFLAGS = $(INCPATH) -pipe -O2 -Wall -D_REENTRANT -g $(SANITIZERS)

all: flirone

flirone.o: src/flirone.c src/plank.h
$(CC) $(CFLAGS) -c $< -o $@

flirone: src/flirone.o
${CC} -o flirone src/flirone.o -lusb-1.0 -lm -Wall
flirone: flirone.o
$(CC) -o $@ $< $(SANITIZERS) -lusb-1.0 -lm -g

clean:
rm -f flirone.o flirone

9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
This is a cleaned up version of code posted here:
http://www.eevblog.com/forum/thermal-imaging/question-about-flir-one-for-android/

All credit goes to tomas123, cynfab etc from that forum who did the awesome research and work to make this support.
All credit goes to tomas123, cynfab etc from that forum who did the awesome research and work to make this support.

### Add Support for FLIR ONE G3 Cameras

The branch g3 of this fork adds support for FLIR ONE G3 cameras (it may also work with PRO LT models), that have a sensor with 80x60 resolution.

It also adds some command line options, that can be displayed by running the program without any arguments.
The `--pro` flag should make it compatible with FLIR ONE G2 and PRO models, although I don't have one of those to test.
1 change: 1 addition & 0 deletions load_module.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sudo modprobe v4l2loopback exclusive_caps=0,0 video_nr=2,3,4
Loading