PeterJohnNumPyMatplotlib
iPhone / developpeurs
Now PeterJohn, a Python Interpreter which Runs on iPhone,
Acquired Two Major Modules, NumPy and Matplotlib.
they will help you to study
DataScience, DeepLearning, ReinforcementLearning.
it's like King Jesus sent twelve disciples out two by two.
**Mark 6:7;12-13, GNT
6:7 He called the twelve disciples together and sent them out two by two. He gave them authority over the evil spirits.
6:12 So they went out and preached that people should turn away from their sins.
6:13 They drove out many demons, and rubbed olive oil on many sick people and healed them.
**** How to Use it;
1) First, Touch "Add Tutorial" at the BottomLeft of ProjectsView.
2) Touch "TutorialSeason006" at ProjectsView.
3) Choose One of Four at ScriptsView.
s001PILimageFontTest.py; This doesNot use Matplotlib but uses only Matplotlib TTF(TrueTypeFonts).
s002matplotlibPltPlot.py
s003matplotlibPltLegend.py
s004BarChartOnPolarAxis.py
4) Touch "RunScript" at the TopRight of EditScriptView.
5) Only for the first time, the warning that "AppleMetal Cache Directory doesNot Exist" appears,
Once needs to go back to EditScriptView,
and then touch "RunScript" at the TopRight of EditScriptView Again.
6) the script is Executed at RunScriptView.
****
Enjoy NumPy, Enjoy Matplotlib
Enjoy DataScience, DeepLearing, ReinforcementLearing.
Enjoy PeterJohnNumPyMatplotlib
--Yasushi Yassun Obata
Quoi de neuf dans la dernière version ?
'OpenCV-Python' ( OpenCV-Python Bindings ) Available Version;
Now you Can Use 'OpenCV-Python' on 'PeterJohnNumPyMatplotlib' .
you will also be able to use 'OpenCV-Python' on
'PeterJohnNumPy' and 'PeterJohnPyTorch', maybe soon.
'OpenCV-Python' needs NumPy as the data representation,
so PeterJohnThreeDim which doesNot have NumPy,
canNot Support 'OpenCV-Python'.
if you need 'OpenCV-Python',
please Upgrade to 'PeterJohnNumPy', ''PeterJohnNumPyMatplotlib'
or 'PeterJohnPyTorch'.
****Two Examples;
We prepared two examples at this time;
TutorialSeason003/s006opencvPythonMachineLearning.py;
TutorialSeason003/s007opencvPythonVideoCaptureMachineLearning.py
****Two-Unimplemented Features;
OpenCV-Python on PeterJohnNumPy has Two-Unimplemented Features;
1) cap = cv2.VideoCapture()
OpenCV-Python on PeterJohnNumPy can't start
VideoCapture directly.
2) ret, img = cap.read()
OpenCV-Python on PeterJohnNumPy can't read frame
from VideoCamera directly.
But, instead of Abobe Two,
Use 'pjOpenCV as cvCPP';
So that you Can Edit the image captured from VideoCamera,
using 'OpenCV-Python'.
****How to Edit the image captured from VideoCamera;
1) setup VideoCapture;
import pjOpenCV as cvCPP
cvCPP.setVideoCaptureFPS(10)
##cvCPP.initVideoCaptureBackCamera()
cvCPP.initVideoCaptureFrontCamera()
##cvCPP.flipCamera() ## flipCamera()
2) start VideoCapture;
captured image is Stored as the UIImage 'srcImg';
cvCPP.startVideoCapture()
import cv2
3) To Get Captured image, use 'cvCPP.saveSrcImg()'.
cvCPP.saveSrcImg( srcAbsPath )
img = cv2.imread( srcAbsPath )
4) Edit the NumPy image, Using "OpenCV-Python".
5) To Reflect the edited NumPy image on the UIImage 'destImg',
use 'cvCPP.createDestImg';
cv2.imwrite(destAbsPath, img)
cvCPP.createDestImg(destAbsPath)
6) To Show the UIImage 'destImg', use 'cvCPP.showDestImg()'.
cvCPP.showDestImg()
Enjoy MachineLearning,
Enjoy DeepLearning,
--Yasushi Yassun Obata