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

How to run via CLI? #7

Open
b-des opened this issue Jan 27, 2020 · 6 comments
Open

How to run via CLI? #7

b-des opened this issue Jan 27, 2020 · 6 comments

Comments

@b-des
Copy link

b-des commented Jan 27, 2020

Hi! Thanks for your work. Tell me please, how to run this tool via CLI?

@b-des b-des changed the title How ot run via CLI? How to run via CLI? Jan 27, 2020
@thucnc
Copy link

thucnc commented Mar 18, 2020

@dpar39 please help. I ran ./ppp_app -b /root/ppp/images/k.jpg -o /root/ppp/images/k.jpg -i /root/ppp/images/1.jpg and got Segmentation fault (core dumped)

@dpar39
Copy link
Owner

dpar39 commented May 15, 2020

You'll need to upload the image to debug it and figure out what's going on. Here I see you are using the same image file path for badge output and normal output.

@bradleyhodges
Copy link

Hi! Thanks for your work. Tell me please, how to run this tool via CLI?

@dpar39 Are you able to provide further information on how to use the CLI? I've tried using the parameters provided by ppp_app.exe --help. The command runs without error, but does not produce an output.

Seems like I'm not the only one having this issue.

@marcin1990
Copy link

marcin1990 commented Dec 23, 2022

Same here, I'm trying to run this tool using attached image.
I'm wondering why there is outBadgePath parameter required.

`ubuntu@ubuntu-VM:~$ cd ppp/

ubuntu@ubuntu-VM:~/ppp$ cd install_linux_release_x64/

ubuntu@ubuntu-VM:~/ppp/install_linux_release_x64$ ./ppp_app -b manbadge.png -o mainmage.png -i personthatnotexists.jpeg

Segmentation fault (core dumped)

ubuntu@ubuntu-VM:~/ppp/install_linux_release_x64$
`

personthatnotexists

@xaverdh
Copy link

xaverdh commented Aug 5, 2023

I also hit the segfault but managed to get it to run by building from 1bdd1b5 and specifying the path to config.bundle.json with --config on the cli.
So it looks like the newer commits that attempt to get rid of config.bundle.json don't quite work for the cli.

@xaverdh
Copy link

xaverdh commented Aug 5, 2023

If you have the nix package manager available, you can run nix-build -A photo-id-creator on this branch (respectively NixOS/nixpkgs@9a853aa for a stable reference) of my nixpkgs clone. That should put a result symlink in the directory and allow you to run

./result/bin/ppp_app --config ./result/share/config.bundle.json -i [...] -b [...] -o [...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants