I am required to call python scripts into as my project is a webcam project. I needed to call a normalization python script and edit it.
            Asked
            
        
        
            Active
            
        
            Viewed 203 times
        
    -2
            
            
        - 
                    What is the calling language? If it's visual studio, is it C#? – The Velcromancer Jun 23 '14 at 01:57
- 
                    Hi the calling language is c#. – user3732314 Jun 23 '14 at 02:03
1 Answers
0
            IF this is still a problem for you, I'd recommend calling the python script as a command line call, as shown in this resource. You can save the output of the python script as a file and then read that file in to your C# program.
Keep in mind that this is generally not advisable, and there are better ways to go about this in a production system. This ranges from communicating over ports on the local network to using more advanced interprocess communication techniques; these vary from language to language. Still other applications use databases for local communication between processes.
 
    
    
        Community
        
- 1
- 1
 
    
    
        The Velcromancer
        
- 437
- 3
- 10
- 
                    Hi, i think this might just work out but how do i browse my python script? for the part that i do not how these 2 works: strCmdText and startInfo.Arguments – user3732314 Jun 24 '14 at 02:24
- 
                    
- 
                    Oh. Add them wherever you need the data from the script, and then wait for the python script to finish executing. Is it not possible to emulate the functionality in c#? That would be easiest. Inter process communication is very hard. – The Velcromancer Jun 24 '14 at 02:33
- 
                    Hi, i am able to open the cmd prompt but how do i call my python script? i wanted to make it so that when i use this program it automatically helps to open the cmd prompt and call the python scripts automatically but not manually calling the script. – user3732314 Jun 25 '14 at 06:36
