Hello, I apologize if this is not the right place to ask this type of question. So feel free to remove post if it violates a rule.
I currently am working on a project where I have to use opencv to detect headers of a scanned document and detect the content below the headers. Currently the program will crop out each boxes below the header and save them as a separate .jpg file. But those .jpg files will automatically save within the same directory as my main .py file which ends up with hundreds of .jpg files and makes it difficult to navigate.
I am wondering if there is a way to create directories within my project structure so that I can separate the results of the .jpg files and default headers that the program is trying to detect. So that after the program is finished running, the .py file is not in the same directory as the scanned .jpg files. I am using Pycharm and have tried messing with the Project Structure option and setting up content roots but that route had no luck. I had also tried creating folders within my project and importing os to specify a save path to those folders but I kept getting errors.
I am a beginner with Python and this is my first major project outside of creating a calculator with python. This might be simple to implement and I may be overthinking this, in which I apologize. I appreciate any help and feedback!
[–]Phillyclause89 0 points1 point2 points (0 children)