Giter Club home page Giter Club logo

differ's Introduction

Compilation Information:

You must have Maven and the JDK installed.

Install javadjvu-lib-0.8.9-RELEASE.jar manually:

mvn install:install-file -DgroupId=com.lizardtech -DartifactId=javadjvu-lib -Dversion=0.8.9-RELEASE -Dpackaging=jar -Dfile=javadjvu-lib-0.8.9-RELEASE.jar

Before you can run 'mvn package', change to the differ-libs-from-source directory and run 'mvn install'

The other commands below should be run from the root directory (./differ)
To package the Differ application into a .war (which is by default placed in ./bin) and compile all plugins:
 
	mvn package
	
	This produces a plugin directory and resources directory in the bin folder. Those should be placed into ~/.differ (%USERPROFILE%/.differ on Windows). A WAR is also
	produced, which should be used in the appropriate configuration for your webserver.
	
To compile the Differ application without packaging:

	mvn compile
	
To update the widgetsets without running a full compile:

	mvn vaadin:update-widgetset
	
To compile as needed and run on a local Jetty server first run mvn:package and then:
	
	mvn jetty:run-war
	
	Passing a terminator control character to the console you initiated the server from shuts down the server. [Ctrl-C or Ctrl-Z on most platforms]

To remove all build files:
	
	mvn clean


Differ Documentation
====================

You can read documentation https://differ.readthedocs.org/en/latest/ .

You can read documentation docs/_build/dirhtml/index.html .

You can build documentation:

    cd docs
    make html  

 or:

    cd docs
    make.bat

differ's People

Contributors

jstavel avatar xrosecky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

differ's Issues

install jpylyzer

and try to run docs/bin/get-jpylyzer.sh
It is a script to collect outputs from jpylyzer.
It is the first step to collect significant properties - observing output of an external program.

installation of kdu_expand requires manual setup of library variable

When running kdu_expand the first time it gives an error that the file cannot find libkdu_v72r.so

Suggested fixes:

  1. Write the import in the code:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/$kakadu.bin... or similar
export LD_LIBRARY_PATH

  1. Or just add the above to documentation for the user to add manually

What do you think Jan?

jpylyzer - create unittest to check whether all significant properties are mapped right way

  • see appCtx-differ-cmdline.xml. It is main source.

    So there is bean metadataExtractors.
    See where it is used.

    There is jpylyzerMetadataExtractor in the file.
    It will be called in a unittest to get output.

  • please see, what structure the output is.

    There is ArraySet extractorProperties, identificationProperties, validationProperties, characterizationProperties in a file metadataSignificantProperties.
    All of them will be checked in the unittest.

  • Choose two images that jpylyzer can recognize. See property supportedFileExtensions in a file jpylyzerMetadataExtractor.

  • call jpylyzer by hand and try to recognize what values of significant properties the extractor gives.

  • save the values of significant properties for a given image into some structure. I think you can create spring application context for junit.

  • write junit test for bean jpylyzerMetadataExtractor to check, whether outputs it gives for a given image are the same as values by hand.

    If you have problem with collecting values of significant properties for given image I help you.

reorganize colums order at compare text output

There is an application that compare two images.

  • see differ-cmdline/run-two.sh

class TextCompareResultTransformer create text output of a comparison.

  • reorder columns order this way:
    Property name Extractor Value Unit

Thanks,
Jan Stavel

install jpylyzer

please refer to documentation.
Please, write a short installation guide how to install.
Just copy and paste commands you did.

reorganize colums order at text output

Text output of cmdline creates class TextResultTransformer.

The right order of columns it prints is:

Property name Extractor Value Unit

File name: x File_Name.jp2
File size: x 9,52 MB
Height: Jhove 1748 px
ExifTool 1748
NZ MTD Extractor 1748
FFIdent 1748
KDU_expand 1748
DjVuDUMP 1748
JP2 Checker 1748
Width: Jhove 2480 px
ExifTool 2480
NZ MTD Extractor 2480
FFIdent 2480
KDU_expand 2480
DjVuDUMP 2480
JP2 Checker 2480
Resolution (Y) Jhove 600 ppi
ExifTool 600
NZ MTD Extractor 600
FFIdent 72
KDU_expand 600
DjVuDUMP 600
JP2 Checker 600

See FACE_app_form5 google docs.

  • please, reorder the columns.

Thanks,
Jan Stavel

Database connection issues.

Hi, I'm having troubles accessing the database with the differ-webapp.

My current differ.properties looks like:

db.driverClassName=com.mysql.jdbc.Driver
db.url=localhost:3306
db.username=differ
db.password=differ

and while I can register a user using the Register button, reading from the database seems to create errors by throwing the exception: "Could not get
JDBC connection; nested exception is java.sql.SQLExcetion: No suitable
driver found for localhost:3306". Am I even using the correct driverClassName?

Another things is that in my tomcat log it says

SEVERE: The web application [] registered the JDBC driver 
[com.mysql.jdbc.Driver] but failed to unregister it when the web 
application was stopped. To prevent a memory leak, the JDBC Driver has 
been forcibly unregistered.

It would seem there is missing some kind of cleanup which then makes tomcat forcibly kill the driver which results in the database not being accessible for later interaction.

As a last resort, is there a way to use the tool without the web application? I mean in a way where I still will be receiving some visual information as output like the web application? Maybe a generated HTML page showing the information the web application would. I have tried running the command line tool by using the run-two.sh file and the reports generated doesn't seem to produce anything visual - even the web report *.drep file.

install sphinx documentation tool

documentation is written in restructured text.
[[http://docutils.sourceforge.net/rst.html]]

If you want to see rendered documentation, it is necessary to install sphinx tools.
[[http://sphinx-doc.org/]]

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.