Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   image processing with python (http://www.chiefdelphi.com/forums/showthread.php?t=153754)

Noam 16-01-2017 12:44

image processing with python
 
Hello, this year my team decided we want to use a camera for image processing (with opencv 3)
We are program the robot with Java, but we want to do the image processing with Python. (because it easier) I have a code in Python that detect faces, and detect the side and the size (regardless of the robot), and I want to use it for the robot. (of course face detection is useless for the robot, but just for the training)
How can I combine the Python code with the Java code ?
(or it may be better to program the entire robot in python ? (I noticed just today that it's possible to program the robot with Python, so I don't know much about it))

Thanks in advance

acastagna 17-01-2017 06:21

Re: image processing with python
 
My students are doing a similar thing. It's their first year trying vision and they are dong the vision code in python using opencv, while the robot is programmed in java. The vision code runs on a raspberry pi and sends data to the driver station and robot using network tables.

We playing around at first with using opencv in Java. Our choice for python was based on the fact that python was easier to implement on the pi, opencv was easier to work with in python and students have option of working entirely in python next year. Of course this decision was made before we learned opencv was to be bundled with the wpi libraries . Either way I think we made the right decision.


All times are GMT -5. The time now is 21:34.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi