最近做一些数据库调研的工作,目标是实现影像更快的入库、出库、查询,并实现并行访问等操作。
将结果总结成一个mysqlImg类。
关于mongodb的图像存储,参见http://www.cnblogs.com/bigbigtree/p/3242483.html
关于mysql&python的问题和mysql官方链接python的API总结,参见
http://www.cnblogs.com/bigbigtree/p/3246638.html
http://www.cnblogs.com/bigbigtree/archive/2013/08/08/3246718.html
http://www.cnblogs.com/bigbigtree/archive/2013/08/09/3247477.html
http://www.cnblogs.com/bigbigtree/p/3248126.html
mysqlImg代码如下,
1 #coding=UTF-8 2 ''' 3 Created on 2013-8-7 4 5 @author: tree 6 ''' 7 __metaclass__ = type 8 9 import mysql.connector 10 import os 11 import time 12 13 14 class mysqlImg(object): 15 """mysqlImg is a class for inserting image 16 """ 17 def __init__(self): 18 19 self.__filelist=