-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Re-write in C++ * upsampling * autotrace doesn't like images that come frm opencv * chom * a * I wanna try this with opencv * Cleanup and usability * Path parsing actually works™, Not super useful for the actual tool, but good for debugging lol * Contours * Why not just re-write the whole thing in c++ * Update build instructions 1/? * Clean up ipcv_obj and Makefile * Update documentation
- Loading branch information
1 parent
236f8fb
commit 1442dce
Showing
65 changed files
with
571 additions
and
9,249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ build/ | |
*.svg | ||
do.sh | ||
ImageTranscription/inkpath.so | ||
ImageTranscription/ipcvobj.so | ||
*.gch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
FROM docker.io/debian | ||
|
||
RUN touch /root/.Xauthority && \ | ||
apt-get update && \ | ||
apt-get install -y tmux git gdb vim x11-apps #&& \ | ||
# apt-get install -y build-essential pkg-config autoconf intltool autopoint libtool libglib2.0-dev build-essential libmagickcore-dev libpstoedit-dev imagemagick pstoedit && \ | ||
# apt-get install -y cmake libgtk-3-dev libpoppler-glib-dev portaudio19-dev libsndfile-dev \ | ||
# dvipng texlive libxml2-dev liblua5.3-dev libzip-dev librsvg2-dev gettext lua-lgi | ||
RUN touch /root/.Xauthority | ||
RUN apt-get update | ||
|
||
# Disabled for testing | ||
#RUN cd && git clone https://github.com/yy502/autotrace && \ | ||
# cd autotrace && ./autogen.sh && LD_LIBRARY_PATH=/usr/local/lib ./configure --prefix=/usr && make && make install | ||
# Line 10: Inkpath | ||
# Line 11: Xournalpp | ||
# Line 13: debugging tools | ||
RUN apt-get install -y make liblua5.4-dev build-essential pkg-config libglib2.0-dev libpng-dev && \ | ||
apt-get install -y cmake libgtk-3-dev libpoppler-glib-dev portaudio19-dev libsndfile-dev \ | ||
dvipng texlive libxml2-dev libzip-dev librsvg2-dev gettext lua-lgi \ | ||
libgtksourceview-4-dev | ||
RUN apt-get install -y tmux git gdb vim x11-apps tree wget unzip | ||
|
||
# Mount these yourself. | ||
#git clone https://github.com/xournalpp/xournalpp && \ | ||
#git clone https://gitub.com/willnilges/inkpath && \ | ||
#RUN cd && git clone https://github.com/willnilges/xournalpp && \ | ||
#cd xournalpp && mkdir build && cd build && cmake .. && cmake --build . | ||
# | ||
#RUN cd && git clone https://github.com/willnilges/inkpath && \ | ||
#cd inkpath && make lua-plugin && cp -r ImageTranscription ../xournalpp/plugins && cp ImageTranscription/inkpath.so ../xournalpp/build/src | ||
# Build and install OpenCV into the container | ||
COPY ./build-opencv.sh . | ||
RUN bash /build-opencv.sh 48 | ||
|
||
# Build and install Xournal++ | ||
COPY ./build-xopp.sh . | ||
RUN bash /build-xopp.sh 48 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
cd HACKING | ||
podman build . --tag xopp-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
cores=4 | ||
|
||
# For compiling faster | ||
if [ -n "$1" ]; then | ||
cores=$1 | ||
fi | ||
|
||
# Create exterior directories | ||
mkdir -p ../opencv | ||
cd ../opencv | ||
|
||
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.5.1.zip | ||
|
||
unzip opencv.zip | ||
# Create opencv build directory | ||
mkdir -p build && cd build | ||
# Configure | ||
cmake ../opencv-4.5.1 -DBUILD_SHARED_LIBS=OFF -DOPENCV_GENERATE_PKGCONFIG=YES -DWITH_GTK=OFF | ||
# Build | ||
cmake --build . -j$cores | ||
|
||
make install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.