1.常ç¨çå大pythonå¾åå¤çå·¥å
·
2.Facebook Open Platform编译FAQ
常ç¨çå大pythonå¾åå¤çå·¥å ·
åææ é¢ï¼ Python image manipulation tools.
ä½è | Parul Pandey
ç¿»è¯ | å®å ¶ç½ä¹å°ãJimmyHua
ä»å¤©ï¼å¨æ们çä¸çéå 满äºæ°æ®ï¼å¾åæ为ææè¿äºæ°æ®çéè¦ç»æé¨åãä½æ 论æ¯ç¨äºä½ç§ç¨éï¼è¿äºå¾åé½éè¦è¿è¡å¤çãå¾åå¤çå°±æ¯åæåå¤çæ°åå¾åçè¿ç¨ï¼ä¸»è¦æ¨å¨æé«å ¶è´¨éæä»ä¸æåä¸äºä¿¡æ¯ï¼ç¶åå¯ä»¥å°å ¶ç¨äºæç§ç¨éã
å¾åå¤çä¸ç常è§ä»»å¡å æ¬æ¾ç¤ºå¾åï¼åºæ¬æä½å¦è£åªã翻转ãæ转çï¼å¾ååå²ï¼åç±»åç¹å¾æåï¼å¾åæ¢å¤åå¾åè¯å«ãPythonæ为è¿ç§å¾åå¤çä»»å¡æ¯ä¸ä¸ªæ°å½éæ©ï¼è¿æ¯å 为å®ä½ä¸ºä¸ç§ç§å¦ç¼ç¨è¯è¨æ£å¨æ¥çæ®åï¼å¹¶ä¸å¨å ¶çæç³»ç»ä¸å è´¹æä¾è®¸å¤æå è¿çå¾åå¤çå·¥å ·ä¾å¤§å®¶ä½¿ç¨ã
让æ们çä¸ä¸å¯ä»¥ç¨äºå¾åå¤çä»»å¡ä¸çå¸¸ç¨ Python åºæåªäºå§ã
1.scikit-image
scikit-imageæ¯ä¸ä¸ªå¼æºçPythonå ï¼éç¨äºnumpyæ°ç»ãå®å®ç°äºç¨äºç 究ï¼æè²åå·¥ä¸åºç¨çç®æ³åå®ç¨å·¥å ·ãå³ä½¿æ¯é£äºåæ¥è§¦Pythonçæç³»ç»ç人ï¼å®ä¹æ¯ä¸ä¸ªç¸å½ç®åç´æ¥çåºãæ¤ä»£ç æ¯ç±æ´»è·çå¿æ¿è 社åºç¼åçï¼å ·æé«è´¨éååè¡è¯å®¡çæ§è´¨ã
èµæº
ææ¡£éè®°å½äºä¸°å¯çä¾ååå®é ç¨ä¾ï¼é 读ä¸é¢çææ¡£ï¼
/abidrahmank/OpenCV2-Python-Tutorials
ç¨æ³
ä¸é¢æ¯ä¸ä¸ªä¾åï¼å±ç¤ºäºOpenCV-Python使ç¨éåå¡æ¹æ³å建ä¸ä¸ªå为âOrappleâçæ°æ°´æå¾åèåçåè½ã
6. SimpleCV
SimpleCV ä¹æ¯ä¸ä¸ªç¨äºæ建计ç®æºè§è§åºç¨ç¨åºçå¼æºæ¡æ¶ãæäºå®ï¼ä½ å°±å¯ä»¥è®¿é®å 个é«æ§è½ç计ç®æºè§è§åºï¼å¦OpenCVï¼èä¸ä¸éè¦å å¦ä¹ äºè§£ä½æ·±åº¦ãæä»¶æ ¼å¼ãé¢è²ç©ºé´çã
å®çå¦ä¹ æ²çº¿å¤§å¤§å°äºOpenCVï¼æ£å¦å®ä»¬çå£å·æ说â计ç®æºè§è§åå¾ç®åâãä¸äºæ¯æSimpleCVçè§ç¹æï¼
å³ä½¿æ¯åå¦è ä¹å¯ä»¥ç¼åç®åçæºå¨è§è§æµè¯æåæºãè§é¢æ件ãå¾ååè§é¢æµé½æ¯å¯äºæä½çèµæº
å®æ¹ææ¡£é常容æç解ï¼èä¸æ大éçä¾åå使ç¨æ¡ä¾å»å¦ä¹ ï¼
/hhatto/pgmagick
ç¨æ³
使ç¨pgmagickå¯ä»¥è¿è¡çå¾åå¤çæ´»å¨å¾å°ï¼æ¯å¦ï¼
å¾å缩æ¾
è¾¹ç¼æå
. Pycairo
Pycairoæ¯å¾åå¤çåºcairoçä¸ç»Pythonæç»ãCairoæ¯ä¸ä¸ªç¨äºç»å¶ç¢éå¾å½¢ç2Då¾å½¢åºãç¢éå¾å½¢å¾æ趣ï¼å 为å®ä»¬å¨è°æ´å¤§å°æ转æ¢æ¶ä¸ä¼å¤±å»æ¸ æ°åº¦ ãPycairoæ¯cairoçä¸ç»ç»å®ï¼å¯ç¨äºä»Pythonè°ç¨cairoå½ä»¤ã
èµæº
PycairoçGitHubåºæ¯ä¸ä¸ªå¾å¥½çèµæºï¼æå ³äºå®è£ å使ç¨ç详ç»è¯´æãè¿æä¸ä¸ªå ¥é¨æåï¼å ¶ä¸æä¸ä¸ªå ³äºPycairoçç®çæç¨ã
åºï¼/pygobject/pycairoæåï¼/fbopen/
2:根据readme的码下说明,把fbml所需的码下软件下载到dependencies目录下
3:fbml的php扩展的编译,本身有个脚本,码下户管理后台源码不过一般情况下都不能顺利通过那脚本编译成功
错误提示1:
gconvert.c::2: error: #error GNU libiconv not in use but included iconv.h is 码下from libiconv
解决办法:
修改build-all.py
'glib-2..6.tar.gz': ("./configure", "make", "sudo make install"),
改成
'glib-2..6.tar.gz': ("./configure --with-libiconv=gnu", "make", "sudo make install"),
错误提示2:
nspr4 -lpthread -ldl -L../../dist/bin -lmozjs -L/usr/local/lib -lgtk-x-2.0 -lgdk-x-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L/usr/local/lib -lcairo -Wl,--version-script -Wl,../../build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o)(.text+0xa): In function `nsCanvasRenderingContext2D::Destroy()':
: undefined reference to `XFreePixmap'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o)(.text+0xa): In function `nsCanvasRenderingContext2D::SetDimensions(int, int)':
: undefined reference to `XRenderFindStandardFormat'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o)(.text+0x): In function `nsCanvasRenderingContext2D::SetDimensions(int, int)':
: undefined reference to `XListPixmapFormats'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o)(.text+0x): In function `nsCanvasRenderingContext2D::SetDimensions(int, int)':
: undefined reference to `XFree'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o)(.text+0xd): In function `nsCanvasRenderingContext2D::SetDimensions(int, int)':
: undefined reference to `XCreatePixmap'
collect2: ld returned 1 exit status
gmake[3]: *** [libgklayout.so] Error 1
gmake[3]: Leaving directory `/usr/home/yunfeng/facebook/facebook/fb-open-platform/libfbml-1.2.0/dependencies/mozilla/layout/build'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/usr/home/yunfeng/facebook/facebook/fb-open-platform/libfbml-1.2.0/dependencies/mozilla/layout'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/usr/home/yunfeng/facebook/facebook/fb-open-platform/libfbml-1.2.0/dependencies/mozilla'
make: *** [default] Error 2
解决办法:
修改dependencies/mozilla/layout/build/Makefile.inifdef
MOZ_ENABLE_GTK2EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) / $(NULL)
改成ifdef MOZ_ENABLE_GTK2EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) / -L/usr/XR6/lib -lX -lXrender / $(NULL)
这个错误一般发生在firefox编译的时候,我一般都手动解压缩firefox软件,码下unity 农场源码然后修改Makefile.in,码下html隐藏导航源码然后在build-all.py中屏蔽解压缩firefox的码下语句就行
错误提示3:
In file included from js/jsarena.c::
js/jsbit.h:: error: size of array 'js_static_assert_line_' is negative
make[1]: *** [js/jsarena.o] Error 1
make: *** [src] Error 2
解决办法:
修改 src/js/jsbit.h 第行
S_STATIC_ASSERT(sizeof(unsigned long long) == sizeof(JSUword));
改成
S_STATIC_ASSERT(sizeof(unsigned long) == sizeof(JSUword));
这个错误发生在firefox编译成功后,进行fbml的码下编译时候发生的,如果你用build-all.py编译,码下不想进行前面的码下编译,可以根据脚本屏蔽前面的码下编译。
码下