U
    +d                     @   sV   d dl mZ d dlmZ d dlmZ d dlZd dlm	Z	 d dl
Z
e	eedddZdS )	    )Path)timeGeoObject)crc64N)	dbs_class)dbfnamereturnc                 C   sN  t t|j gt jd }| |}|d krbt	
d|j d t||d }| | nt||d }|j D ]}t|j| t jkrt |j| |j| krnt	
d| d t|j| tkr|j| |j| krnt	
d| d t|j| tkrx|j| |j| kr"qxt	
d| d qxt	
d|j d |S )Nr   z
New image z foundz------> Difference found in z !zExisting image )nparrayr   Zecma_182stemencodeastypeZint64Zis_in_image_dbloggingdebugr   Zinsert_image__dict__keystypendarrayallstrfloat)r   r   hashZtimeGeo_ZtimeGeo2Zkk r   6/home/isk/software/changedetection/src/process_file.pyprocess_file   s,    $
r   )pathlibr   Zsrc.timeGeor   Zfastcrcr   numpyr	   src.db_skeletonr   r   anyr   r   r   r   r   <module>   s   