![]() |
volcamcore
2019 march
Biblioteca volcamcore
|
Clase para poder interactuar con la base de datos o estructura de archivos de las cámaras de vigilancia usadas por VolCAM (2019) Más...
#include <QObject>
#include <QDebug>
#include "conf_volcam.h"
#include "configuracion.h"
#include "conf_stndevices.h"
#include "conf_tags.h"
#include "conf_pointsofinterest.h"
#include "conf_users.h"
#include "imagenes_wc.h"
#include "measure2d_imagenes_wc.h"
#include "tagged_imagenes_wc.h"
Ir al código fuente de este archivo.
Clases | |
class | VolcamQuery |
Clase para poder interactuar con la base de datos o estructura de archivos de las cámaras de vigilancia usadas por VolCAM (2019)
Para aprender a usar esta clase puedes ejecutar la función getHelp()
VOLCAM QUERY
Help to use volcamquery.h
This class is a very useful tool to interact with database or file structure data of webcam images (or IP cameras)
It try to use little similar coding as SQL queries like SELECT, INSERT or DELETE
The first thing you have to do is get all the configuration information:
load_config You can get the complete configuration: based on a local file like ./Local_Config_files/VolCAM_popayan.conf
from which you could acces to Tags.txt, Stations.txt, PointsOfInterest.txt, DevicesLogbook.txt, DeviceParameters.txt at sharedDir_VolCAM: ../Shared_Config_files/
and also Users information at sharedDir_VolCAM: ../Users/Users.txt
Probably the second thing you have to do is get all the images and its info from one date to another; to do so, you can use:
select_imgwc_fromall You can get the complete stored info about images in a period of time and filter it by some *items.
Then you will want to insert or delete some tags or measures:
insert_taggedimgwc You can insert a tag or list of tags to a list of imgwc (exactly at the one which has the same datetime and station name) and save it, please if you want to modify a tag, first delete it and then insert it
delete_taggedimgwc You can delete a tag or list of tags
insert_measureimgwc You can insert a measure2d or list of measure2d, please if you want to modify a measure2d, first delete it and then insert it
delete_measureimgwc You can delete a measure2d or list of measure2d
*items To filter by items you can create a text list splited by ';' like:"
"" 2018-12-31T10:20 ; Purace ; measured2D_imgwc " to filter the image list you will get
**saveFormat You could use save format to set in which format you have the data: Json, Binary, Text(csv formatted)
Example of Initializing a VolcamQuery
Example of getting DeviceParameters (dp), DevicesLogBook (dlb), Tags (tags), Points of interest (pointsi) and Users list (usrs)
Example with DB, to tag images of tafwc station at "2018-04-05T01:01"
Example to tag images of tafwc station at "2018-04-05T01:01"
Example with DB, to remove tags at "2018-04-05T01:02"
Example to remove tags at "2018-04-05T01:02"
Example to get ImgwC strcutre based on a Json formatted query