You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cpp-example-stitching newline missing when the command exits #10461
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$
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
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 .
Activity
[-]cpp-example-stitching newline missing at the end of command[/-][+]cpp-example-stitching newline missing when the command exits[/+]alalek commentedon Dec 29, 2017
Perhaps this patch could help:
victor-ludorum commentedon Dec 29, 2017
Hello @eugaz and @alalek I am new to OpenCV . I want to work on this issue . Please guide me how to start .
eugaz commentedon Dec 29, 2017
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.
victor-ludorum commentedon Dec 29, 2017
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
I didn't understand much about this . Please elaborate .
Sorry for bothering you again .
eugaz commentedon Dec 30, 2017
@victor-ludorum here
https://github.com/opencv/opencv/blob/master/samples/cpp/stitching.cpp#L57
replace
img2.jpg"with
img2.jpg\n"victor-ludorum commentedon Dec 30, 2017
Okay @eugaz Thank you very much 😊 I will submit the PR after correcting this .
Updating stiching.cpp to resolve new line issue opencv#10461
eugaz commentedon Dec 30, 2017
@victor-ludorum
Also here
https://github.com/opencv/opencv/blob/master/samples/cpp/stitching.cpp#L47
replace
success"with
success\n"victor-ludorum commentedon Dec 30, 2017
@eugaz Okay I have committed this change too . Thanks 😊
Updating file to resolve issue opencv#10461
Merge master into fork (#1)
Merge pull request opencv#10469 from victor-ludorum:stichingbranch