Skip to content

cpp-example-stitching newline missing when the command exits #10461

Closed

Description

@eugaz

After running a command, the shell prompt is at the same line than the ended command, instead of being on a new line. Example:

linux@linux:~/opencv$ ./build/bin/cpp-example-stitching
Images stitcher.

Usage :
/home/linux/opencv/build/bin/cpp-example-stitching [Flags] img1 img2 [...imgN]

Flags:
  --d3
      internally creates three chunks of each image to increase stitching success  --try_use_gpu (yes|no)
      Try to use GPU. The default value is 'no'. All default values
      are for CPU mode.
  --mode (panorama|scans)
      Determines configuration of stitcher. The default is 'panorama',
      mode suitable for creating photo panoramas. Option 'scans' is suitable
      for stitching materials under affine transformation, such as scans.
  --output <result_img>
      The default is 'result.jpg'.

Example usage :
/home/linux/opencv/build/bin/cpp-example-stitching --d3 --try_use_gpu yes --mode scans img1.jpg img2.jpglinux@linux:~/opencv$

"linux@linux:~/opencv$" should be in a newline.

Activity

  1. changed the title [-]cpp-example-stitching newline missing at the end of command[/-] [+]cpp-example-stitching newline missing when the command exits[/+] on Dec 28, 2017
  2. alalek commented on Dec 29, 2017

    @alalek
    Member

    Perhaps this patch could help:

              "  --d3\n"
    -         "      internally creates three chunks of each image to increase stitching success"
    +         "      internally creates three chunks of each image to increase stitching success" << std::endl <<
              "  --try_use_gpu (yes|no)\n"
    ...
    -         "Example usage :\n" << argv[0] << " --d3 --try_use_gpu yes --mode scans img1.jpg img2.jpg";
    +         "Example usage :" << std::endl <<
    +         argv[0] << " --d3 --try_use_gpu yes --mode scans img1.jpg img2.jpg" << std::endl;
    }
  3. victor-ludorum commented on Dec 29, 2017

    @victor-ludorum
    Contributor

    Hello @eugaz and @alalek I am new to OpenCV . I want to work on this issue . Please guide me how to start .

  4. eugaz commented on Dec 29, 2017

    @eugaz
    Author

    cpp-example-stitching_detailed works as intended, just copy from it. Couldn't check all the examples or opencv commands, but it's work checking.

  5. victor-ludorum commented on Dec 29, 2017

    @victor-ludorum
    Contributor

    Hello @eugaz thanks 😊 for your reply . But sorry to say I didn't get much idea . Can you please provide me the module on which I have to work . And the things which I have to do to solve the issue . As you have suggested I have read cpp-example-stiching-detailed.cpp . Is it what I have to study for solving this issue . You have also mentioned

    just copy from it. Couldn't check all the examples or opencv commands, but it's work checking.

    I didn't understand much about this . Please elaborate .
    Sorry for bothering you again .

  6. victor-ludorum commented on Dec 30, 2017

    @victor-ludorum
    Contributor

    Okay @eugaz Thank you very much 😊 I will submit the PR after correcting this .

  7. victor-ludorum commented on Dec 30, 2017

    @victor-ludorum
    Contributor

    @eugaz Okay I have committed this change too . Thanks 😊

  8. added a commit that references this issue on Jan 29, 2018
  9. added a commit that references this issue on Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions