Comments (9)
You're missing libxerces
If on Ubuntu. Sudo apt install libxerces-dev or something like that...
from seshat.
Yes, well you don't feed png/jpeg images to this algorithm, but SCG_INK format.
You can have the spec with a little google: https://www.scg.uwaterloo.ca/mathbrush/publications/corpus.pdf
And you have an example right in the repo (if you read the README the command should have hinted it): https://github.com/falvaro/seshat/blob/master/SampleMathExps/exp.scgink
It's important because strokes contain more information than raw picture (a vertical line can be either an upward stroke or a downward stroke, and that can change an algorithm's decision for maths). If you have only images at hand, then you can use other algorithms to get back a stroke path, but that's another problem that is not contained is this repo's code.
from seshat.
Using "FLAGS = -O3 -Wno-unused-result -I/boost_1_73_0/" also gave the same errors.
from seshat.
This repo is 6 years old, boost was update quite a bit, event C++11 will make this code not compile.
You can check out my fork I updated it with more recent library compat. https://github.com/Narsil/seshat
Cheers.
from seshat.
@Narsil Hey thanks. I will check out your fork and let you know. Thanks.
from seshat.
Hey @Narsil
Tried your code got this error
g++ -c online.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c featureson.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c symfeatures.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c symrec.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c production.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c gparser.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c grammar.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c hypothesis.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c cellcyk.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c tablecyk.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c stroke.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c sample.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
sample.cc:31:10: fatal error: xercesc/util/PlatformUtils.hpp: No such file or directory
#include <xercesc/util/PlatformUtils.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:32: recipe for target 'sample.o' failed
make: *** [sample.o] Error 1
from seshat.
Hey @Narsil
Thanks that worked, I was able to build.
Now when I try running on a jpg/png image it gives me an Error: input file format is not SCG_INK
Tried #10 but it gave the same error.
The following issue has also been tagged in #17 and #25
from seshat.
Thanks @Narsil
Appreciate your help.
from seshat.
does this work for windows?
from seshat.
Related Issues (20)
- Compiling to WebAssembly?
- make: *** [symfeatures.o] Error 4 HOT 1
- Output formats HOT 1
- Can it be trained to recognize symbols like Γ¨,Γ΄, ΓΌ?
- Build error: 'values.h' file not found HOT 9
- Tuple is ambiguous HOT 1
- How can I parse image to to SCG Ink? HOT 5
- How to train the models by myselfs dataset?
- Build Error - Windows HOT 1
- Segmentation fault (core dumped) HOT 1
- python wrapper of seshat
- Building Xerces-C error
- How can I use normal image as input to get latex from seshat or how can I convert the normal image to inkml format I mean the format which seshat accepts
- While installing I get "recipe for target sample.o failed" HOT 2
- build error HOT 3
- Make issue
- xerces linking and compling error
- Can it be used to scan pdf documents?
- Issues running the project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seshat.