diff --git a/build/doctrees/environment.pickle b/build/doctrees/environment.pickle index fff912b..d02e1dd 100644 Binary files a/build/doctrees/environment.pickle and b/build/doctrees/environment.pickle differ diff --git a/build/doctrees/misinformation.doctree b/build/doctrees/misinformation.doctree index 1335fa1..5838161 100644 Binary files a/build/doctrees/misinformation.doctree and b/build/doctrees/misinformation.doctree differ diff --git a/build/html/genindex.html b/build/html/genindex.html index 7d926a3..6b2ba68 100644 --- a/build/html/genindex.html +++ b/build/html/genindex.html @@ -86,6 +86,7 @@ | I | J | K + | L | M | N | O @@ -262,6 +263,20 @@ +

L

+ + + +
+

M

@@ -258,6 +261,21 @@ To return all images, set to None.

utils.initialize_dict(filelist: list) dict
+
+
+utils.load_model(model_type)
+
+ +
+
+utils.load_model_base()
+
+ +
+
+utils.load_model_large()
+
+
utils.misinformation_prefetch_models()
diff --git a/build/html/modules.html b/build/html/modules.html index 863c974..5338799 100644 --- a/build/html/modules.html +++ b/build/html/modules.html @@ -105,6 +105,9 @@
  • dump_df()
  • find_files()
  • initialize_dict()
  • +
  • load_model()
  • +
  • load_model_base()
  • +
  • load_model_large()
  • misinformation_prefetch_models()
  • diff --git a/build/html/objects.inv b/build/html/objects.inv index f32a803..289e98b 100644 Binary files a/build/html/objects.inv and b/build/html/objects.inv differ diff --git a/build/html/searchindex.js b/build/html/searchindex.js index baaf5f4..59c8d19 100644 --- a/build/html/searchindex.js +++ b/build/html/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["index", "license_link", "misinformation", "modules", "readme_link"], "filenames": ["index.rst", "license_link.md", "misinformation.rst", "modules.rst", "readme_link.md"], "titles": ["Welcome to misinformation\u2019s documentation!", "License", "utils module", "misinformation package modules", "Misinformation campaign analysis"], "terms": {"campaign": 0, "analysi": [0, 2], "instal": 0, "window": 0, "usag": 0, "featur": 0, "text": [0, 3], "extract": 0, "emot": 0, "recognit": 0, "object": [0, 3], "detect": [0, 2], "crop": [0, 2], "post": [0, 2], "packag": [0, 4], "modul": [0, 4], "util": [0, 3], "displai": [0, 3], "face": [0, 3, 4], "objects_cvlib": [0, 3], "croppost": [0, 3], "licens": 0, "index": 0, "search": 0, "page": 0, "mit": 1, "copyright": 1, "c": [1, 4], "2022": 1, "ssc": 1, "permiss": 1, "i": [1, 4], "herebi": 1, "grant": 1, "free": 1, "charg": 1, "ani": [1, 2, 4], "person": [1, 4], "obtain": [1, 4], "copi": 1, "thi": [1, 2, 4], "softwar": 1, "associ": 1, "document": [1, 2], "file": [1, 2, 4], "deal": 1, "without": 1, "restrict": 1, "includ": [1, 2], "limit": [1, 2], "right": 1, "us": [1, 2, 4], "modifi": 1, "merg": 1, "publish": 1, "distribut": 1, "sublicens": 1, "sell": 1, "permit": 1, "whom": 1, "furnish": 1, "do": [1, 4], "so": [1, 4], "subject": [1, 4], "follow": [1, 4], "condit": 1, "The": [1, 2, 4], "abov": 1, "notic": 1, "shall": 1, "all": [1, 2], "substanti": 1, "portion": 1, "THE": 1, "provid": [1, 4], "AS": 1, "warranti": 1, "OF": 1, "kind": 1, "express": [1, 2], "OR": 1, "impli": 1, "BUT": 1, "NOT": 1, "TO": 1, "merchant": 1, "fit": 1, "FOR": 1, "A": [1, 2], "particular": 1, "purpos": 1, "AND": 1, "noninfring": 1, "IN": 1, "NO": 1, "event": 1, "author": 1, "holder": 1, "BE": 1, "liabl": 1, "claim": 1, "damag": 1, "other": [1, 2, 4], "liabil": 1, "whether": [1, 2], "an": [1, 2, 4], "action": 1, "contract": 1, "tort": 1, "otherwis": [1, 2], "aris": 1, "from": [1, 2, 4], "out": [1, 4], "connect": 1, "WITH": 1, "class": 2, "analysismethod": [2, 3], "subdict": 2, "base": 2, "inherit": 2, "method": 2, "analyse_imag": [2, 3], "set_kei": [2, 3], "downloadresourc": [2, 3], "kwarg": 2, "remot": 2, "resourc": [2, 3], "need": [2, 4], "demand": 2, "download": [2, 4], "we": 2, "wrapper": 2, "pooch": 2, "librari": 2, "regist": 2, "each": 2, "data": [2, 4], "allow": 2, "prefetch": 2, "through": 2, "cli": 2, "entri": 2, "point": 2, "misinformation_prefetch_model": [2, 3], "get": [2, 3, 4], "append_data_to_dict": [2, 3], "mydict": 2, "dict": 2, "append": 2, "list": 2, "dictionari": 2, "kei": [2, 4], "global": 2, "dump_df": [2, 3], "datafram": 2, "dump": 2, "find_fil": [2, 3], "path": 2, "none": 2, "pattern": 2, "png": 2, "recurs": 2, "true": [2, 4], "20": 2, "find": 2, "imag": [2, 4], "system": 2, "paramet": 2, "directori": [2, 4], "where": 2, "ar": [2, 4], "look": 2, "default": [2, 4], "which": 2, "xdg": 2, "set": [2, 4], "current": [2, 4], "work": 2, "name": 2, "filenam": 2, "should": [2, 4], "match": 2, "can": [2, 4], "onli": 2, "specif": 2, "prefix": 2, "suffix": 2, "subdirectori": [2, 4], "maximum": 2, "number": [2, 4], "found": 2, "To": [2, 4], "return": 2, "initialize_dict": [2, 3], "filelist": 2, "jsoncontain": [2, 3], "expos": 2, "python": 2, "json": [2, 4], "jupyterlab": 2, "rich": 2, "render": 2, "explore_analysi": [2, 3], "identifi": [2, 4], "emotiondetector": [2, 3], "emotion_threshold": 2, "50": 2, "0": 2, "race_threshold": 2, "analyze_single_fac": [2, 3], "ndarrai": 2, "clean_subdict": [2, 3], "result": 2, "facial_expression_analysi": [2, 3], "wears_mask": [2, 3], "bool": 2, "nocatchoutput": [2, 3], "output": 2, "contain": 2, "suppress": 2, "except": 2, "taken": 2, "http": [2, 4], "github": [2, 4], "com": [2, 4], "jupyt": 2, "widget": 2, "ipywidget": 2, "issu": 2, "3208": 2, "issuecom": 2, "1070836153": 2, "deepface_symlink_processor": [2, 3], "objectcvlib": [2, 3], "client_typ": 2, "1": 2, "objectsmethod": [2, 3], "local": [2, 4], "arg": 2, "instanc": 2, "analyse_image_from_fil": [2, 3], "image_path": 2, "detect_objects_cvlib": [2, 3], "init_default_object": [2, 3], "objects_from_cvlib": [2, 3], "objects_list": 2, "objectdetector": [2, 3], "od_client": [2, 3], "objectdetectorcli": [2, 3], "static": 2, "set_client_to_cvlib": [2, 3], "postprocesstext": [2, 3], "option": 2, "use_csv": 2, "fals": 2, "csv_path": 2, "str": 2, "analyse_top": [2, 3], "return_top": 2, "int": 2, "3": 2, "topic": 2, "bertop": 2, "get_text_df": [2, 3], "get_text_dict": [2, 3], "textdetector": [2, 3], "analyse_text": [2, 4], "clean_text": [2, 3], "clean": [2, 4], "unrecogn": [2, 4], "word": [2, 4], "correct_spel": [2, 3], "get_text_from_imag": [2, 3], "remove_linebreak": [2, 3], "remov": [2, 4], "linebreak": 2, "origin": 2, "translat": [2, 4], "sentiment_analysi": [2, 3], "translate_text": [2, 3], "compute_crop_corn": [2, 3], "kp1": 2, "kp2": 2, "region": 2, "30": 2, "h_margin": 2, "28": 2, "v_margin": 2, "5": 2, "min_match": 2, "6": 2, "crop_posts_from_fil": [2, 3], "ref_dir": 2, "crop_dir": 2, "save_crop_dir": 2, "plt_match": 2, "plt_crop": 2, "crop_posts_from_ref": [2, 3], "ref_view": 2, "view": 2, "crop_posts_imag": [2, 3], "correct_margin": 2, "700": 2, "dir": 2, "sub": 2, "rte": 2, "crop_view": 2, "draw_match": [2, 3], "img1": 2, "img2": 2, "get_file_list": [2, 3], "ext": 2, "convert_unix": 2, "root": 2, "extens": 2, "kp_from_match": [2, 3], "matching_point": [2, 3], "plot_match": [2, 3], "keypoints1": 2, "keypoints2": 2, "test_crop_from_fil": [2, 3], "test_crop_from_fold": [2, 3], "social": 4, "media": 4, "disinform": 4, "project": 4, "under": 4, "develop": 4, "pre": 4, "process": 4, "collect": 4, "inform": 4, "comment": 4, "languag": 4, "english": 4, "spell": 4, "check": 4, "sentiment": 4, "perform": 4, "non": 4, "human": 4, "serv": 4, "fight": 4, "combat": 4, "more": 4, "comprehens": 4, "about": 4, "its": 4, "content": 4, "techniqu": 4, "ultim": 4, "goal": 4, "comput": 4, "assist": 4, "toolset": 4, "investig": 4, "worldwid": 4, "pip": 4, "navig": 4, "your": 4, "folder": 4, "execut": 4, "depend": 4, "some": 4, "lavi": 4, "anayls": 4, "enabl": 4, "function": 4, "o": 4, "you": 4, "avail": 4, "command": 4, "line": 4, "visual": 4, "see": 4, "also": 4, "here": 4, "Then": 4, "coco": 4, "api": 4, "git": 4, "philferrier": 4, "cocoapi": 4, "egg": 4, "pycocotool": 4, "pythonapi": 4, "now": 4, "type": 4, "prompt": 4, "There": 4, "sampl": 4, "notebook": 4, "explor": 4, "ipynb": 4, "directli": 4, "If": 4, "further": 4, "analys": 4, "keyword": 4, "demonstr": 4, "run": 4, "googl": 4, "colab": 4, "place": 4, "cloud": 4, "vision": 4, "drive": 4, "access": 4, "facial": 4, "facial_express": 4, "thei": 4, "wear": 4, "mask": 4, "race": 4, "gender": 4, "domin": 4, "ojects_express": 4, "certain": 4, "being": 4, "bicycl": 4, "car": 4, "motorcycl": 4, "airplan": 4, "bu": 4, "train": 4, "truck": 4, "boat": 4, "traffic": 4, "light": 4, "cell": 4, "phone": 4, "exploratori": 4, "natur": 4, "colors_express": 4, "color": 4, "For": 4, "up": 4, "account": 4, "instruct": 4, "ai": 4, "websit": 4, "export": 4, "locat": 4, "environ": 4, "variabl": 4, "google_application_credenti": 4, "store": 4, "column": 4, "when": 4, "csv": 4, "googletran": 4, "recogn": 4, "automat": 4, "text_languag": 4, "text_english": 4, "want": 4, "have": 4, "In": 4, "spaci": 4, "token": 4, "part": 4, "speech": 4, "lemma": 4, "text_clean": 4, "correct": 4, "text_english_correct": 4, "carri": 4, "polar": 4, "latter": 4, "two": 4, "step": 4, "textblob": 4}, "objects": {"": [[2, 0, 0, "-", "cropposts"], [2, 0, 0, "-", "display"], [2, 0, 0, "-", "faces"], [2, 0, 0, "-", "objects"], [2, 0, 0, "-", "objects_cvlib"], [2, 0, 0, "-", "text"], [2, 0, 0, "-", "utils"]], "cropposts": [[2, 1, 1, "", "compute_crop_corner"], [2, 1, 1, "", "crop_posts_from_files"], [2, 1, 1, "", "crop_posts_from_refs"], [2, 1, 1, "", "crop_posts_image"], [2, 1, 1, "", "draw_matches"], [2, 1, 1, "", "get_file_list"], [2, 1, 1, "", "kp_from_matches"], [2, 1, 1, "", "matching_points"], [2, 1, 1, "", "plot_matches"], [2, 1, 1, "", "test_crop_from_file"], [2, 1, 1, "", "test_crop_from_folder"]], "display": [[2, 2, 1, "", "JSONContainer"], [2, 1, 1, "", "explore_analysis"]], "faces": [[2, 2, 1, "", "EmotionDetector"], [2, 2, 1, "", "NocatchOutput"], [2, 1, 1, "", "deepface_symlink_processor"]], "faces.EmotionDetector": [[2, 3, 1, "", "analyse_image"], [2, 3, 1, "", "analyze_single_face"], [2, 3, 1, "", "clean_subdict"], [2, 3, 1, "", "facial_expression_analysis"], [2, 3, 1, "", "set_keys"], [2, 3, 1, "", "wears_mask"]], "objects": [[2, 2, 1, "", "ObjectDetector"], [2, 2, 1, "", "ObjectDetectorClient"]], "objects.ObjectDetector": [[2, 3, 1, "", "analyse_image"], [2, 4, 1, "", "od_client"], [2, 3, 1, "", "set_client_to_cvlib"], [2, 3, 1, "", "set_keys"]], "objects.ObjectDetectorClient": [[2, 3, 1, "", "analyse_image"], [2, 3, 1, "", "set_client_to_cvlib"]], "objects_cvlib": [[2, 2, 1, "", "ObjectCVLib"], [2, 2, 1, "", "ObjectsMethod"], [2, 1, 1, "", "init_default_objects"], [2, 1, 1, "", "objects_from_cvlib"]], "objects_cvlib.ObjectCVLib": [[2, 3, 1, "", "analyse_image"], [2, 3, 1, "", "analyse_image_from_file"], [2, 3, 1, "", "detect_objects_cvlib"]], "objects_cvlib.ObjectsMethod": [[2, 3, 1, "", "analyse_image"]], "text": [[2, 2, 1, "", "PostprocessText"], [2, 2, 1, "", "TextDetector"]], "text.PostprocessText": [[2, 3, 1, "", "analyse_topic"], [2, 3, 1, "", "get_text_df"], [2, 3, 1, "", "get_text_dict"]], "text.TextDetector": [[2, 3, 1, "", "analyse_image"], [2, 3, 1, "", "clean_text"], [2, 3, 1, "", "correct_spelling"], [2, 3, 1, "", "get_text_from_image"], [2, 3, 1, "", "remove_linebreaks"], [2, 3, 1, "", "sentiment_analysis"], [2, 3, 1, "", "set_keys"], [2, 3, 1, "", "translate_text"]], "utils": [[2, 2, 1, "", "AnalysisMethod"], [2, 2, 1, "", "DownloadResource"], [2, 1, 1, "", "append_data_to_dict"], [2, 1, 1, "", "dump_df"], [2, 1, 1, "", "find_files"], [2, 1, 1, "", "initialize_dict"], [2, 1, 1, "", "misinformation_prefetch_models"]], "utils.AnalysisMethod": [[2, 3, 1, "", "analyse_image"], [2, 3, 1, "", "set_keys"]], "utils.DownloadResource": [[2, 3, 1, "", "get"], [2, 4, 1, "", "resources"]]}, "objtypes": {"0": "py:module", "1": "py:function", "2": "py:class", "3": "py:method", "4": "py:attribute"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "function", "Python function"], "2": ["py", "class", "Python class"], "3": ["py", "method", "Python method"], "4": ["py", "attribute", "Python attribute"]}, "titleterms": {"welcom": 0, "misinform": [0, 3, 4], "": 0, "document": 0, "content": 0, "indic": 0, "tabl": 0, "licens": 1, "util": 2, "modul": [2, 3], "displai": 2, "face": 2, "objects_cvlib": 2, "object": [2, 4], "text": [2, 4], "croppost": 2, "packag": 3, "campaign": 4, "analysi": 4, "instal": 4, "window": 4, "usag": 4, "featur": 4, "extract": 4, "emot": 4, "recognit": 4, "detect": 4, "crop": 4, "post": 4}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 57}, "alltitles": {"Welcome to misinformation\u2019s documentation!": [[0, "welcome-to-misinformation-s-documentation"]], "Contents:": [[0, null]], "Indices and tables": [[0, "indices-and-tables"]], "License": [[1, "license"]], "utils module": [[2, "module-utils"]], "display module": [[2, "module-display"]], "faces module": [[2, "module-faces"]], "objects_cvlib module": [[2, "module-objects_cvlib"]], "objects module": [[2, "module-objects"]], "text module": [[2, "module-text"]], "cropposts module": [[2, "module-cropposts"]], "misinformation package modules": [[3, "misinformation-package-modules"]], "Misinformation campaign analysis": [[4, "misinformation-campaign-analysis"]], "Installation": [[4, "installation"]], "Installation on Windows": [[4, "installation-on-windows"]], "Usage": [[4, "usage"]], "Features": [[4, "features"]], "Text extraction": [[4, "text-extraction"]], "Emotion recognition": [[4, "emotion-recognition"]], "Object detection": [[4, "object-detection"]], "Cropping of posts": [[4, "cropping-of-posts"]]}, "indexentries": {"analysismethod (class in utils)": [[2, "utils.AnalysisMethod"]], "downloadresource (class in utils)": [[2, "utils.DownloadResource"]], "emotiondetector (class in faces)": [[2, "faces.EmotionDetector"]], "jsoncontainer (class in display)": [[2, "display.JSONContainer"]], "nocatchoutput (class in faces)": [[2, "faces.NocatchOutput"]], "objectcvlib (class in objects_cvlib)": [[2, "objects_cvlib.ObjectCVLib"]], "objectdetector (class in objects)": [[2, "objects.ObjectDetector"]], "objectdetectorclient (class in objects)": [[2, "objects.ObjectDetectorClient"]], "objectsmethod (class in objects_cvlib)": [[2, "objects_cvlib.ObjectsMethod"]], "postprocesstext (class in text)": [[2, "text.PostprocessText"]], "textdetector (class in text)": [[2, "text.TextDetector"]], "analyse_image() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.analyse_image"]], "analyse_image() (objects.objectdetector method)": [[2, "objects.ObjectDetector.analyse_image"]], "analyse_image() (objects.objectdetectorclient method)": [[2, "objects.ObjectDetectorClient.analyse_image"]], "analyse_image() (objects_cvlib.objectcvlib method)": [[2, "objects_cvlib.ObjectCVLib.analyse_image"]], "analyse_image() (objects_cvlib.objectsmethod method)": [[2, "objects_cvlib.ObjectsMethod.analyse_image"]], "analyse_image() (text.textdetector method)": [[2, "text.TextDetector.analyse_image"]], "analyse_image() (utils.analysismethod method)": [[2, "utils.AnalysisMethod.analyse_image"]], "analyse_image_from_file() (objects_cvlib.objectcvlib method)": [[2, "objects_cvlib.ObjectCVLib.analyse_image_from_file"]], "analyse_topic() (text.postprocesstext method)": [[2, "text.PostprocessText.analyse_topic"]], "analyze_single_face() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.analyze_single_face"]], "append_data_to_dict() (in module utils)": [[2, "utils.append_data_to_dict"]], "clean_subdict() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.clean_subdict"]], "clean_text() (text.textdetector method)": [[2, "text.TextDetector.clean_text"]], "compute_crop_corner() (in module cropposts)": [[2, "cropposts.compute_crop_corner"]], "correct_spelling() (text.textdetector method)": [[2, "text.TextDetector.correct_spelling"]], "crop_posts_from_files() (in module cropposts)": [[2, "cropposts.crop_posts_from_files"]], "crop_posts_from_refs() (in module cropposts)": [[2, "cropposts.crop_posts_from_refs"]], "crop_posts_image() (in module cropposts)": [[2, "cropposts.crop_posts_image"]], "cropposts": [[2, "module-cropposts"]], "deepface_symlink_processor() (in module faces)": [[2, "faces.deepface_symlink_processor"]], "detect_objects_cvlib() (objects_cvlib.objectcvlib method)": [[2, "objects_cvlib.ObjectCVLib.detect_objects_cvlib"]], "display": [[2, "module-display"]], "draw_matches() (in module cropposts)": [[2, "cropposts.draw_matches"]], "dump_df() (in module utils)": [[2, "utils.dump_df"]], "explore_analysis() (in module display)": [[2, "display.explore_analysis"]], "faces": [[2, "module-faces"]], "facial_expression_analysis() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.facial_expression_analysis"]], "find_files() (in module utils)": [[2, "utils.find_files"]], "get() (utils.downloadresource method)": [[2, "utils.DownloadResource.get"]], "get_file_list() (in module cropposts)": [[2, "cropposts.get_file_list"]], "get_text_df() (text.postprocesstext method)": [[2, "text.PostprocessText.get_text_df"]], "get_text_dict() (text.postprocesstext method)": [[2, "text.PostprocessText.get_text_dict"]], "get_text_from_image() (text.textdetector method)": [[2, "text.TextDetector.get_text_from_image"]], "init_default_objects() (in module objects_cvlib)": [[2, "objects_cvlib.init_default_objects"]], "initialize_dict() (in module utils)": [[2, "utils.initialize_dict"]], "kp_from_matches() (in module cropposts)": [[2, "cropposts.kp_from_matches"]], "matching_points() (in module cropposts)": [[2, "cropposts.matching_points"]], "misinformation_prefetch_models() (in module utils)": [[2, "utils.misinformation_prefetch_models"]], "module": [[2, "module-cropposts"], [2, "module-display"], [2, "module-faces"], [2, "module-objects"], [2, "module-objects_cvlib"], [2, "module-text"], [2, "module-utils"]], "objects": [[2, "module-objects"]], "objects_cvlib": [[2, "module-objects_cvlib"]], "objects_from_cvlib() (in module objects_cvlib)": [[2, "objects_cvlib.objects_from_cvlib"]], "od_client (objects.objectdetector attribute)": [[2, "objects.ObjectDetector.od_client"]], "plot_matches() (in module cropposts)": [[2, "cropposts.plot_matches"]], "remove_linebreaks() (text.textdetector method)": [[2, "text.TextDetector.remove_linebreaks"]], "resources (utils.downloadresource attribute)": [[2, "utils.DownloadResource.resources"]], "sentiment_analysis() (text.textdetector method)": [[2, "text.TextDetector.sentiment_analysis"]], "set_client_to_cvlib() (objects.objectdetector static method)": [[2, "objects.ObjectDetector.set_client_to_cvlib"]], "set_client_to_cvlib() (objects.objectdetectorclient method)": [[2, "objects.ObjectDetectorClient.set_client_to_cvlib"]], "set_keys() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.set_keys"]], "set_keys() (objects.objectdetector method)": [[2, "objects.ObjectDetector.set_keys"]], "set_keys() (text.textdetector method)": [[2, "text.TextDetector.set_keys"]], "set_keys() (utils.analysismethod method)": [[2, "utils.AnalysisMethod.set_keys"]], "test_crop_from_file() (in module cropposts)": [[2, "cropposts.test_crop_from_file"]], "test_crop_from_folder() (in module cropposts)": [[2, "cropposts.test_crop_from_folder"]], "text": [[2, "module-text"]], "translate_text() (text.textdetector method)": [[2, "text.TextDetector.translate_text"]], "utils": [[2, "module-utils"]], "wears_mask() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.wears_mask"]]}}) \ No newline at end of file +Search.setIndex({"docnames": ["index", "license_link", "misinformation", "modules", "readme_link"], "filenames": ["index.rst", "license_link.md", "misinformation.rst", "modules.rst", "readme_link.md"], "titles": ["Welcome to misinformation\u2019s documentation!", "License", "utils module", "misinformation package modules", "Misinformation campaign analysis"], "terms": {"campaign": 0, "analysi": [0, 2], "instal": 0, "window": 0, "usag": 0, "featur": 0, "text": [0, 3], "extract": 0, "emot": 0, "recognit": 0, "object": [0, 3], "detect": [0, 2], "crop": [0, 2], "post": [0, 2], "packag": [0, 4], "modul": [0, 4], "util": [0, 3], "displai": [0, 3], "face": [0, 3, 4], "objects_cvlib": [0, 3], "croppost": [0, 3], "licens": 0, "index": 0, "search": 0, "page": 0, "mit": 1, "copyright": 1, "c": [1, 4], "2022": 1, "ssc": 1, "permiss": 1, "i": [1, 4], "herebi": 1, "grant": 1, "free": 1, "charg": 1, "ani": [1, 2, 4], "person": [1, 4], "obtain": [1, 4], "copi": 1, "thi": [1, 2, 4], "softwar": 1, "associ": 1, "document": [1, 2], "file": [1, 2, 4], "deal": 1, "without": 1, "restrict": 1, "includ": [1, 2], "limit": [1, 2], "right": 1, "us": [1, 2, 4], "modifi": 1, "merg": 1, "publish": 1, "distribut": 1, "sublicens": 1, "sell": 1, "permit": 1, "whom": 1, "furnish": 1, "do": [1, 4], "so": [1, 4], "subject": [1, 4], "follow": [1, 4], "condit": 1, "The": [1, 2, 4], "abov": 1, "notic": 1, "shall": 1, "all": [1, 2], "substanti": 1, "portion": 1, "THE": 1, "provid": [1, 4], "AS": 1, "warranti": 1, "OF": 1, "kind": 1, "express": [1, 2], "OR": 1, "impli": 1, "BUT": 1, "NOT": 1, "TO": 1, "merchant": 1, "fit": 1, "FOR": 1, "A": [1, 2], "particular": 1, "purpos": 1, "AND": 1, "noninfring": 1, "IN": 1, "NO": 1, "event": 1, "author": 1, "holder": 1, "BE": 1, "liabl": 1, "claim": 1, "damag": 1, "other": [1, 2, 4], "liabil": 1, "whether": [1, 2], "an": [1, 2, 4], "action": 1, "contract": 1, "tort": 1, "otherwis": [1, 2], "aris": 1, "from": [1, 2, 4], "out": [1, 4], "connect": 1, "WITH": 1, "class": 2, "analysismethod": [2, 3], "subdict": 2, "base": 2, "inherit": 2, "method": 2, "analyse_imag": [2, 3], "set_kei": [2, 3], "downloadresourc": [2, 3], "kwarg": 2, "remot": 2, "resourc": [2, 3], "need": [2, 4], "demand": 2, "download": [2, 4], "we": 2, "wrapper": 2, "pooch": 2, "librari": 2, "regist": 2, "each": 2, "data": [2, 4], "allow": 2, "prefetch": 2, "through": 2, "cli": 2, "entri": 2, "point": 2, "misinformation_prefetch_model": [2, 3], "get": [2, 3, 4], "append_data_to_dict": [2, 3], "mydict": 2, "dict": 2, "append": 2, "list": 2, "dictionari": 2, "kei": [2, 4], "global": 2, "dump_df": [2, 3], "datafram": 2, "dump": 2, "find_fil": [2, 3], "path": 2, "none": 2, "pattern": 2, "png": 2, "recurs": 2, "true": [2, 4], "20": 2, "find": 2, "imag": [2, 4], "system": 2, "paramet": 2, "directori": [2, 4], "where": 2, "ar": [2, 4], "look": 2, "default": [2, 4], "which": 2, "xdg": 2, "set": [2, 4], "current": [2, 4], "work": 2, "name": 2, "filenam": 2, "should": [2, 4], "match": 2, "can": [2, 4], "onli": 2, "specif": 2, "prefix": 2, "suffix": 2, "subdirectori": [2, 4], "maximum": 2, "number": [2, 4], "found": 2, "To": [2, 4], "return": 2, "initialize_dict": [2, 3], "filelist": 2, "load_model": [2, 3], "model_typ": 2, "load_model_bas": [2, 3], "load_model_larg": [2, 3], "jsoncontain": [2, 3], "expos": 2, "python": 2, "json": [2, 4], "jupyterlab": 2, "rich": 2, "render": 2, "explore_analysi": [2, 3], "identifi": [2, 4], "emotiondetector": [2, 3], "emotion_threshold": 2, "50": 2, "0": 2, "race_threshold": 2, "analyze_single_fac": [2, 3], "ndarrai": 2, "clean_subdict": [2, 3], "result": 2, "facial_expression_analysi": [2, 3], "wears_mask": [2, 3], "bool": 2, "nocatchoutput": [2, 3], "output": 2, "contain": 2, "suppress": 2, "except": 2, "taken": 2, "http": [2, 4], "github": [2, 4], "com": [2, 4], "jupyt": 2, "widget": 2, "ipywidget": 2, "issu": 2, "3208": 2, "issuecom": 2, "1070836153": 2, "deepface_symlink_processor": [2, 3], "objectcvlib": [2, 3], "client_typ": 2, "1": 2, "objectsmethod": [2, 3], "local": [2, 4], "arg": 2, "instanc": 2, "analyse_image_from_fil": [2, 3], "image_path": 2, "detect_objects_cvlib": [2, 3], "init_default_object": [2, 3], "objects_from_cvlib": [2, 3], "objects_list": 2, "objectdetector": [2, 3], "od_client": [2, 3], "objectdetectorcli": [2, 3], "static": 2, "set_client_to_cvlib": [2, 3], "postprocesstext": [2, 3], "option": 2, "use_csv": 2, "fals": 2, "csv_path": 2, "str": 2, "analyse_top": [2, 3], "return_top": 2, "int": 2, "3": 2, "topic": 2, "bertop": 2, "get_text_df": [2, 3], "get_text_dict": [2, 3], "textdetector": [2, 3], "analyse_text": [2, 4], "clean_text": [2, 3], "clean": [2, 4], "unrecogn": [2, 4], "word": [2, 4], "correct_spel": [2, 3], "get_text_from_imag": [2, 3], "remove_linebreak": [2, 3], "remov": [2, 4], "linebreak": 2, "origin": 2, "translat": [2, 4], "sentiment_analysi": [2, 3], "translate_text": [2, 3], "compute_crop_corn": [2, 3], "kp1": 2, "kp2": 2, "region": 2, "30": 2, "h_margin": 2, "28": 2, "v_margin": 2, "5": 2, "min_match": 2, "6": 2, "crop_posts_from_fil": [2, 3], "ref_dir": 2, "crop_dir": 2, "save_crop_dir": 2, "plt_match": 2, "plt_crop": 2, "crop_posts_from_ref": [2, 3], "ref_view": 2, "view": 2, "crop_posts_imag": [2, 3], "correct_margin": 2, "700": 2, "dir": 2, "sub": 2, "rte": 2, "crop_view": 2, "draw_match": [2, 3], "img1": 2, "img2": 2, "get_file_list": [2, 3], "ext": 2, "convert_unix": 2, "root": 2, "extens": 2, "kp_from_match": [2, 3], "matching_point": [2, 3], "plot_match": [2, 3], "keypoints1": 2, "keypoints2": 2, "test_crop_from_fil": [2, 3], "test_crop_from_fold": [2, 3], "social": 4, "media": 4, "disinform": 4, "project": 4, "under": 4, "develop": 4, "pre": 4, "process": 4, "collect": 4, "inform": 4, "comment": 4, "languag": 4, "english": 4, "spell": 4, "check": 4, "sentiment": 4, "perform": 4, "non": 4, "human": 4, "serv": 4, "fight": 4, "combat": 4, "more": 4, "comprehens": 4, "about": 4, "its": 4, "content": 4, "techniqu": 4, "ultim": 4, "goal": 4, "comput": 4, "assist": 4, "toolset": 4, "investig": 4, "worldwid": 4, "pip": 4, "navig": 4, "your": 4, "folder": 4, "execut": 4, "depend": 4, "some": 4, "lavi": 4, "anayls": 4, "enabl": 4, "function": 4, "o": 4, "you": 4, "avail": 4, "command": 4, "line": 4, "visual": 4, "see": 4, "also": 4, "here": 4, "Then": 4, "coco": 4, "api": 4, "git": 4, "philferrier": 4, "cocoapi": 4, "egg": 4, "pycocotool": 4, "pythonapi": 4, "now": 4, "type": 4, "prompt": 4, "There": 4, "sampl": 4, "notebook": 4, "explor": 4, "ipynb": 4, "directli": 4, "If": 4, "further": 4, "analys": 4, "keyword": 4, "demonstr": 4, "run": 4, "googl": 4, "colab": 4, "place": 4, "cloud": 4, "vision": 4, "drive": 4, "access": 4, "facial": 4, "facial_express": 4, "thei": 4, "wear": 4, "mask": 4, "race": 4, "gender": 4, "domin": 4, "ojects_express": 4, "certain": 4, "being": 4, "bicycl": 4, "car": 4, "motorcycl": 4, "airplan": 4, "bu": 4, "train": 4, "truck": 4, "boat": 4, "traffic": 4, "light": 4, "cell": 4, "phone": 4, "exploratori": 4, "natur": 4, "colors_express": 4, "color": 4, "For": 4, "up": 4, "account": 4, "instruct": 4, "ai": 4, "websit": 4, "export": 4, "locat": 4, "environ": 4, "variabl": 4, "google_application_credenti": 4, "store": 4, "column": 4, "when": 4, "csv": 4, "googletran": 4, "recogn": 4, "automat": 4, "text_languag": 4, "text_english": 4, "want": 4, "have": 4, "In": 4, "spaci": 4, "token": 4, "part": 4, "speech": 4, "lemma": 4, "text_clean": 4, "correct": 4, "text_english_correct": 4, "carri": 4, "polar": 4, "latter": 4, "two": 4, "step": 4, "textblob": 4}, "objects": {"": [[2, 0, 0, "-", "cropposts"], [2, 0, 0, "-", "display"], [2, 0, 0, "-", "faces"], [2, 0, 0, "-", "objects"], [2, 0, 0, "-", "objects_cvlib"], [2, 0, 0, "-", "text"], [2, 0, 0, "-", "utils"]], "cropposts": [[2, 1, 1, "", "compute_crop_corner"], [2, 1, 1, "", "crop_posts_from_files"], [2, 1, 1, "", "crop_posts_from_refs"], [2, 1, 1, "", "crop_posts_image"], [2, 1, 1, "", "draw_matches"], [2, 1, 1, "", "get_file_list"], [2, 1, 1, "", "kp_from_matches"], [2, 1, 1, "", "matching_points"], [2, 1, 1, "", "plot_matches"], [2, 1, 1, "", "test_crop_from_file"], [2, 1, 1, "", "test_crop_from_folder"]], "display": [[2, 2, 1, "", "JSONContainer"], [2, 1, 1, "", "explore_analysis"]], "faces": [[2, 2, 1, "", "EmotionDetector"], [2, 2, 1, "", "NocatchOutput"], [2, 1, 1, "", "deepface_symlink_processor"]], "faces.EmotionDetector": [[2, 3, 1, "", "analyse_image"], [2, 3, 1, "", "analyze_single_face"], [2, 3, 1, "", "clean_subdict"], [2, 3, 1, "", "facial_expression_analysis"], [2, 3, 1, "", "set_keys"], [2, 3, 1, "", "wears_mask"]], "objects": [[2, 2, 1, "", "ObjectDetector"], [2, 2, 1, "", "ObjectDetectorClient"]], "objects.ObjectDetector": [[2, 3, 1, "", "analyse_image"], [2, 4, 1, "", "od_client"], [2, 3, 1, "", "set_client_to_cvlib"], [2, 3, 1, "", "set_keys"]], "objects.ObjectDetectorClient": [[2, 3, 1, "", "analyse_image"], [2, 3, 1, "", "set_client_to_cvlib"]], "objects_cvlib": [[2, 2, 1, "", "ObjectCVLib"], [2, 2, 1, "", "ObjectsMethod"], [2, 1, 1, "", "init_default_objects"], [2, 1, 1, "", "objects_from_cvlib"]], "objects_cvlib.ObjectCVLib": [[2, 3, 1, "", "analyse_image"], [2, 3, 1, "", "analyse_image_from_file"], [2, 3, 1, "", "detect_objects_cvlib"]], "objects_cvlib.ObjectsMethod": [[2, 3, 1, "", "analyse_image"]], "text": [[2, 2, 1, "", "PostprocessText"], [2, 2, 1, "", "TextDetector"]], "text.PostprocessText": [[2, 3, 1, "", "analyse_topic"], [2, 3, 1, "", "get_text_df"], [2, 3, 1, "", "get_text_dict"]], "text.TextDetector": [[2, 3, 1, "", "analyse_image"], [2, 3, 1, "", "clean_text"], [2, 3, 1, "", "correct_spelling"], [2, 3, 1, "", "get_text_from_image"], [2, 3, 1, "", "remove_linebreaks"], [2, 3, 1, "", "sentiment_analysis"], [2, 3, 1, "", "set_keys"], [2, 3, 1, "", "translate_text"]], "utils": [[2, 2, 1, "", "AnalysisMethod"], [2, 2, 1, "", "DownloadResource"], [2, 1, 1, "", "append_data_to_dict"], [2, 1, 1, "", "dump_df"], [2, 1, 1, "", "find_files"], [2, 1, 1, "", "initialize_dict"], [2, 1, 1, "", "load_model"], [2, 1, 1, "", "load_model_base"], [2, 1, 1, "", "load_model_large"], [2, 1, 1, "", "misinformation_prefetch_models"]], "utils.AnalysisMethod": [[2, 3, 1, "", "analyse_image"], [2, 3, 1, "", "set_keys"]], "utils.DownloadResource": [[2, 3, 1, "", "get"], [2, 4, 1, "", "resources"]]}, "objtypes": {"0": "py:module", "1": "py:function", "2": "py:class", "3": "py:method", "4": "py:attribute"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "function", "Python function"], "2": ["py", "class", "Python class"], "3": ["py", "method", "Python method"], "4": ["py", "attribute", "Python attribute"]}, "titleterms": {"welcom": 0, "misinform": [0, 3, 4], "": 0, "document": 0, "content": 0, "indic": 0, "tabl": 0, "licens": 1, "util": 2, "modul": [2, 3], "displai": 2, "face": 2, "objects_cvlib": 2, "object": [2, 4], "text": [2, 4], "croppost": 2, "packag": 3, "campaign": 4, "analysi": 4, "instal": 4, "window": 4, "usag": 4, "featur": 4, "extract": 4, "emot": 4, "recognit": 4, "detect": 4, "crop": 4, "post": 4}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 57}, "alltitles": {"Welcome to misinformation\u2019s documentation!": [[0, "welcome-to-misinformation-s-documentation"]], "Contents:": [[0, null]], "Indices and tables": [[0, "indices-and-tables"]], "License": [[1, "license"]], "utils module": [[2, "module-utils"]], "display module": [[2, "module-display"]], "faces module": [[2, "module-faces"]], "objects_cvlib module": [[2, "module-objects_cvlib"]], "objects module": [[2, "module-objects"]], "text module": [[2, "module-text"]], "cropposts module": [[2, "module-cropposts"]], "misinformation package modules": [[3, "misinformation-package-modules"]], "Misinformation campaign analysis": [[4, "misinformation-campaign-analysis"]], "Installation": [[4, "installation"]], "Installation on Windows": [[4, "installation-on-windows"]], "Usage": [[4, "usage"]], "Features": [[4, "features"]], "Text extraction": [[4, "text-extraction"]], "Emotion recognition": [[4, "emotion-recognition"]], "Object detection": [[4, "object-detection"]], "Cropping of posts": [[4, "cropping-of-posts"]]}, "indexentries": {"analysismethod (class in utils)": [[2, "utils.AnalysisMethod"]], "downloadresource (class in utils)": [[2, "utils.DownloadResource"]], "emotiondetector (class in faces)": [[2, "faces.EmotionDetector"]], "jsoncontainer (class in display)": [[2, "display.JSONContainer"]], "nocatchoutput (class in faces)": [[2, "faces.NocatchOutput"]], "objectcvlib (class in objects_cvlib)": [[2, "objects_cvlib.ObjectCVLib"]], "objectdetector (class in objects)": [[2, "objects.ObjectDetector"]], "objectdetectorclient (class in objects)": [[2, "objects.ObjectDetectorClient"]], "objectsmethod (class in objects_cvlib)": [[2, "objects_cvlib.ObjectsMethod"]], "postprocesstext (class in text)": [[2, "text.PostprocessText"]], "textdetector (class in text)": [[2, "text.TextDetector"]], "analyse_image() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.analyse_image"]], "analyse_image() (objects.objectdetector method)": [[2, "objects.ObjectDetector.analyse_image"]], "analyse_image() (objects.objectdetectorclient method)": [[2, "objects.ObjectDetectorClient.analyse_image"]], "analyse_image() (objects_cvlib.objectcvlib method)": [[2, "objects_cvlib.ObjectCVLib.analyse_image"]], "analyse_image() (objects_cvlib.objectsmethod method)": [[2, "objects_cvlib.ObjectsMethod.analyse_image"]], "analyse_image() (text.textdetector method)": [[2, "text.TextDetector.analyse_image"]], "analyse_image() (utils.analysismethod method)": [[2, "utils.AnalysisMethod.analyse_image"]], "analyse_image_from_file() (objects_cvlib.objectcvlib method)": [[2, "objects_cvlib.ObjectCVLib.analyse_image_from_file"]], "analyse_topic() (text.postprocesstext method)": [[2, "text.PostprocessText.analyse_topic"]], "analyze_single_face() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.analyze_single_face"]], "append_data_to_dict() (in module utils)": [[2, "utils.append_data_to_dict"]], "clean_subdict() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.clean_subdict"]], "clean_text() (text.textdetector method)": [[2, "text.TextDetector.clean_text"]], "compute_crop_corner() (in module cropposts)": [[2, "cropposts.compute_crop_corner"]], "correct_spelling() (text.textdetector method)": [[2, "text.TextDetector.correct_spelling"]], "crop_posts_from_files() (in module cropposts)": [[2, "cropposts.crop_posts_from_files"]], "crop_posts_from_refs() (in module cropposts)": [[2, "cropposts.crop_posts_from_refs"]], "crop_posts_image() (in module cropposts)": [[2, "cropposts.crop_posts_image"]], "cropposts": [[2, "module-cropposts"]], "deepface_symlink_processor() (in module faces)": [[2, "faces.deepface_symlink_processor"]], "detect_objects_cvlib() (objects_cvlib.objectcvlib method)": [[2, "objects_cvlib.ObjectCVLib.detect_objects_cvlib"]], "display": [[2, "module-display"]], "draw_matches() (in module cropposts)": [[2, "cropposts.draw_matches"]], "dump_df() (in module utils)": [[2, "utils.dump_df"]], "explore_analysis() (in module display)": [[2, "display.explore_analysis"]], "faces": [[2, "module-faces"]], "facial_expression_analysis() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.facial_expression_analysis"]], "find_files() (in module utils)": [[2, "utils.find_files"]], "get() (utils.downloadresource method)": [[2, "utils.DownloadResource.get"]], "get_file_list() (in module cropposts)": [[2, "cropposts.get_file_list"]], "get_text_df() (text.postprocesstext method)": [[2, "text.PostprocessText.get_text_df"]], "get_text_dict() (text.postprocesstext method)": [[2, "text.PostprocessText.get_text_dict"]], "get_text_from_image() (text.textdetector method)": [[2, "text.TextDetector.get_text_from_image"]], "init_default_objects() (in module objects_cvlib)": [[2, "objects_cvlib.init_default_objects"]], "initialize_dict() (in module utils)": [[2, "utils.initialize_dict"]], "kp_from_matches() (in module cropposts)": [[2, "cropposts.kp_from_matches"]], "load_model() (in module utils)": [[2, "utils.load_model"]], "load_model_base() (in module utils)": [[2, "utils.load_model_base"]], "load_model_large() (in module utils)": [[2, "utils.load_model_large"]], "matching_points() (in module cropposts)": [[2, "cropposts.matching_points"]], "misinformation_prefetch_models() (in module utils)": [[2, "utils.misinformation_prefetch_models"]], "module": [[2, "module-cropposts"], [2, "module-display"], [2, "module-faces"], [2, "module-objects"], [2, "module-objects_cvlib"], [2, "module-text"], [2, "module-utils"]], "objects": [[2, "module-objects"]], "objects_cvlib": [[2, "module-objects_cvlib"]], "objects_from_cvlib() (in module objects_cvlib)": [[2, "objects_cvlib.objects_from_cvlib"]], "od_client (objects.objectdetector attribute)": [[2, "objects.ObjectDetector.od_client"]], "plot_matches() (in module cropposts)": [[2, "cropposts.plot_matches"]], "remove_linebreaks() (text.textdetector method)": [[2, "text.TextDetector.remove_linebreaks"]], "resources (utils.downloadresource attribute)": [[2, "utils.DownloadResource.resources"]], "sentiment_analysis() (text.textdetector method)": [[2, "text.TextDetector.sentiment_analysis"]], "set_client_to_cvlib() (objects.objectdetector static method)": [[2, "objects.ObjectDetector.set_client_to_cvlib"]], "set_client_to_cvlib() (objects.objectdetectorclient method)": [[2, "objects.ObjectDetectorClient.set_client_to_cvlib"]], "set_keys() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.set_keys"]], "set_keys() (objects.objectdetector method)": [[2, "objects.ObjectDetector.set_keys"]], "set_keys() (text.textdetector method)": [[2, "text.TextDetector.set_keys"]], "set_keys() (utils.analysismethod method)": [[2, "utils.AnalysisMethod.set_keys"]], "test_crop_from_file() (in module cropposts)": [[2, "cropposts.test_crop_from_file"]], "test_crop_from_folder() (in module cropposts)": [[2, "cropposts.test_crop_from_folder"]], "text": [[2, "module-text"]], "translate_text() (text.textdetector method)": [[2, "text.TextDetector.translate_text"]], "utils": [[2, "module-utils"]], "wears_mask() (faces.emotiondetector method)": [[2, "faces.EmotionDetector.wears_mask"]]}}) \ No newline at end of file