Location>code7788 >text

DirectoryOpus plugin: "Photo Label Manager" - a good helper for cell phone photo category management!

Popularity:192 ℃/2024-10-15 23:29:52

Photometrics Manager

preamble

  interpretation of nouns: "Illuminated tag manager", that is:Photo Get Tag ManagerThe term is used hereinafter as a shortened version of the term "Photometrics Manager"or"seeing that”。
  Note: Please don't associate yourself with "Audrey Piao" or "Wang De Fa" on Jitterbug, what I'm sharing is serious!take (a photo)Slice-catch (a disease)To -the topmost branches of a treeSign-Manager.

  There is a period of time the author is idle at home, decided to stay on the computer tens of thousands of photos to organize, tried PhotoOrgnizer and other free photo organizing software, but these software will only photos by date for simple categorization, to do what the time and so on, for the want to look for photos according to certain key information, such as: name, event, location, etc. but can not help, and finally had to be PhotoOrgnizer disrupted the storage of photos and copy out to re-organize the categorization, in order to add key information to the photo file name, easy to find later, try to write a DirectoryOpus ( PhotoOrgnizer to disrupt the storage of photos and copy out, re-organization and categorization, in order to add key information to the photo file name, easy to find later, try to write a DirectoryOpus (Hereafter referred to as "DOpus".) renaming script, but in the process of using it, I found that photo organizing is not only renaming, some photos have wrong dates, metadata loss, errors, file names without dates, and other strange problems, since in order to organize the photos, these features can not be lacked, so I abandoned the renaming script, and turned to the independent function script, the good thing is that DOpus is really powerful, and it supports the creation of a window for the script, so it's much more flexible and convenient. Then this is much more flexible and convenient, so while organizing photos while adding features, finally tens of thousands of photos finished, and now half a year is too lazy to organize the new photos, "photo mark" has been idle.

  Originally."seeing that"It won't be released, it's mainly for the author's private use, but one day the QQ group discussed a similar"Who is the best programming language"the question, the group a bunch of big brother said TC (TotalCommander) is a professional file manager, I said that DOpus look ordinary, but eat all the users from small white to expert, DOpus is a professional, and sent a "photo mark" screenshot I said DOpus looks ordinary, but it can be used by all users from beginners to experts, DOpus is the professional, and I sent a screenshot of "Photo Label" to show that DOpus has strong extensibility.Who is the best file manager", I no longer care about this, suddenly one day someone added my QQ friends, said I saw the screenshots I sent, and said that there is a DOpus user group, which are a variety of masters and scripts little prince, to pull me to the inside to exchange, so I saw the screenshots of the photographed mark in the DOpus user group, some people in the group spoke of this script is interested in, I hope to be able to share! ~I hope to share this script.

  Self-use tools, generally not very perfect, many configurations, directories are written dead, another person to use is certainly not up, in order not to affect the use of the feeling, but also in order to reduce some of the recurring problems consulting, I did not hasten to share the "photo tag", before sharing the need to optimize the previous written dead place, improve the handling of exceptions, functional testing, and user manual preparation, which took quite a few days. Before sharing, I still need to optimize the previously written dead places, improve the exception handling, functional testing, and user manual writing, which took a lot of time.

  Due to the limited level, as well as mainly located in the author's own use, the tool will be more or less unreasonable or inconvenient functions, due to the author tosource code (computing)The way to share the "photo tag", you can according to their own needs to modify the source code and enhance the relevant features, the author is not obliged to do special incremental development for the user, if it is a reasonable general-purpose features, the author can be considered, but does not guarantee that the function will be upgraded at a later date.

statement denying or limiting responsibility

  In the process of organizing his tens of thousands of photographs using "Photo Label", the author did not have any problems with the loss or damage of his photographs.However, it doesn't mean that there won't be problems with lost and corrupted photos on your computer.Please read the user manual carefully before using this script, assess the impact and acceptability, and back up your data in advance.

  1. The author is a non-professional developer, and the main purpose of "Photo Label" is to serve the author's self-use scenarios, and only openly share it at the request of enthusiastic users. Due to the limited ability and level of the code, it is inevitable that the code will be categorized asUralsan CodeAnd a lot of code exceptions to protect the author did not do, if there is a function of anomalies or errors, please do your best to modify the source code or give up the use, please do not use the bad and abuse, slander, attack the author himself, such as this case, "according to the standard" will be voluntarily given up to share.

  2. In case of data loss or file corruption caused by the use of this script, the author is not obliged to restore it, and the author is not jointly and severally liable for any damages caused as a result.

Updated Description

2024-10-13: First shared.

System Requirements

  • Windows 10: This tool is developed based on Windows 10, Win7, Win11 and other systems have not been verified and are not guaranteed to work properly.
  • DirectoryOpus 13.5+: DirectoryOpus 12 and earlier versions are explicitly not supported.

Installation Instructions

Step 1: Download the attachment and unzip it locally to get the following two files

Phototech Manager.dlg
Photorefractor Manager.vbs

The dlg file is the window resource file and the vbs file is the "seeing that"The main program.

Download Address:
c58cd475001ba92734cc0ddfd428d0ca DOpus Plugin - Illuminated Label Manager.zip

🕮 Description
  Since "Shine Label" involves file operation, it is a matter of great importance, please download it from the address provided in this article, in order to prevent being injected with malicious code and causing losses! If your files are lost, damaged or infected with viruses due to the download route other than the one provided in this article, please download it from the address provided in this article to prevent the loss of malicious code.I am not responsible for this and do not provide any technical support!

Step 2: Right-click on the toolbar of DOpus and select "Customize" on the pop-up menu as shown below:

Step 3: Right-click on the toolbar in DOpus again, in the pop-up menu, select "New - & gt; New button", as shown below:

After the execution is complete a new button will appear on the toolbar as shown below:

Step 4: Right-click on the new button and select the menu "Edit" menu as shown below:

Step 5: In the pop-up "Command Editor" window, make the following settings

  1. In the "Marker" edit box, enter the name of the tool "Illuminator Marker Manager", of course, you can also play freely.
  2. Click in the "Shortcut Keys" edit box and press your favorite shortcut key.
  3. Select "Script Function" in the "Type" drop-down list box.
  4. Check the "Script Code" tab, and set theIlluminated Label Manager.vbsfileFull ContentCopy it to the edit window under that tab. (Note: Empty that edit window first)
🕮 Description
Use any text editor to open the file "Photorefractor.vbs" and copy it, and do the same with the file "Photorefractor.dlg".
  1. Check the "Resources" tab, and set thePhototech Manager.dlgfileFull ContentCopy it to the edit window under that tab. (Note: Empty that edit window first)
  2. Click the icon labeled ⑥ as shown in the figure to select your favorite icon. (This step can be omitted.)
  3. Click the "√" button on the top right of the screen to complete the installation of "Illuminator", as shown in the figure below:

    At this point, click the newly created button on the toolbar to open the main Illuminator window.
🕮 Description
"The configuration file of `Light Label` is saved in `C:\Temp` directory, if the directory doesn't exist, the tool will create it automatically, please don't delete it. If the directory does not exist, the tool will create it automatically.

Function

Main Functions

seeing that"It is divided into 4 main functional blocks:

  • file renaming: Add keywords to the photo file name, e.g., time, place, person, event, etc. to make it easier to find later. ps: sorry no cause, effect, result.

  • Categorization of documents: Move files to the specified folder, especially some life type screenshots, such as: courier documents, shopping invoices, etc., you can quickly move to the documents or invoices folder.

  • Repair photo timeFor example, in some WeChat pictures, the file name is a series of numbers, and the modification time in the file is not the real time of the picture, and even the metadata of some pictures are lost after network transmission, in order to facilitate future management, these pictures need to restore the real time in the file name, metadata, and so on.

  • screening: Some customized filtering functions associated with the currently selected file, such as: filtering images with the same date, filtering files that do not contain tags, and so on.

The following section describes each of the specific features.

file renaming

pass (a bill or inspection etc)Click on the newly created Illuminator button in the Installation chapter., or press a set shortcut key to bring up the "seeing that"The main window, as shown below

Step 1: Select the photo file to be processed in the DOpus file window.

Select photos and open the "Photo Label" is not sequential, you can always open the "Photo Label" window, in the DOpus file window to select different files to add labels in batches. See label ① in the figure.

🕮 Description
The "Illuminator" window is displayed at the top level, but you can still perform operations in DOpus normally.
Step 2: Enter the label information in the Illuminated Label window.

categorizationAdd category information to the photo file name, such as: work, life, travel, documents, invoices, etc. The categories can be added or deleted by yourself in the "Settings" window.

timing: the default is to put a file like "2022.10"If users want to input their own time, they can remove the "Use file time" checkbox in the "Settings" window and input it manually.

🕮 Description
  • "Photo Label" will check whether the time entered by the user and the actual time of the photo are consistent, if not "Photo Label" will remind the user of the inconsistency, whether to force the filename to add the user's own input timestamp.
  • The time entered by the user is not necessarily the year and month information such as "2022.10", it can also be "winter month", "waxing month", "first month" and other random information, but "Photo Label" will remind the user that this time is not consistent with the file time, if the user chooses to enforce it, it will label the file name successfully. "and other random information, but" according to the label "will remind the user of this time and file time is not consistent, the user chooses to force the implementation of the file name will be labeled successfully.

spot: Enter the location where the photo was taken, it can be freely defined, generally recommended city + specific small places, for example: Shenzhen. Lotus Hill.

🕮 Description
Some people may want to auto-populate the location by the "longitude" and "latitude" of the photo, this will involve the use of network API, currently did not find any good API, if you have a suitable API, you can try to add your own latitude and longitude for the name of the place! If you have a suitable API, you can try to add the

character (in a play, novel etc): Enter information about the people in the photo to make it easier for you to find them later, e.g., Big Boy, Second Boy, etc.

event: Enter the context in which the photo took place, e.g., Spring Festival trip to Huangshan, summer vacation trip to Dali, etc.

filmmaker: The camera model information in the photo metadata is used by default, or you can enter the shooter yourself, e.g. Rose Photo Studio.

🕮 Description
When you enter the "Shooter" yourself, you need to remove the "Read file shooter" checkbox in the "Settings" window.
Step 3: Pre-processing
🕮 Description
This step is not a necessary operation, and can be operated selectively according to individual usage habits, see label ③ in the figure.

Reading the camera: Reads the camera model information of the selected file (check more than one to read only the first one) into the edit box.

🕮 Description
  • "Read Camera" does not require manual operation, "Photo Label" will automatically read the camera information of each file and add it to the file label when adding labels.
  • Why do some camera models display "ELE-AL00" information that I can't understand? This is because some cell phones add this type of model ID to photos, so you need to look up the corresponding cell phone name on the Internet and configure it in the "Settings" page.

Load file labels: There are some photo files that have had tags added, but don't feel right and want to change a field and enter it again from scratch? It's not much, but it's impossible for me to enter it manually, for the rest of my life. Therefore, this button can refill the tags on the already tagged files into the edit box, and the user only needs to change the corresponding field.

previews: DOpus's file renaming has a preview function, so the "Photo Label" must also have, after clicking on it, you can see the result of the renaming in advance in the log window of "Photo Label".

Step 4: File Renaming

Click the "Add Label" button to add information such as "Category", "Time", "Location", "Person", "Event", "Shooter", etc. to the selected file name, "People", "Events", "Shooter", etc. to the selected file name.

flushingThe "Develop" button adds the word "Develop" to the file name, so you can quickly filter the photos you want to develop.

user tag" button to add a user-specified tag to the file name, enter the customization in the edit box next to the button.

go and rinse"button to remove the word "douche" from the file name.

Other Functional Notes

log (computing)"Mainly display preview information, and file renaming result information.

histories"The list box will record the last 50 non-repeating label records, double-click on the list can be related information to fill in the left edit box to reduce the user manual input.

Demo Animation
Renaming of documents: labeling

Categorization of documents

File categorization focuses on selected photo filesQuickly move to a specified directoryFor example: users can define their own common directory to store "receipts", "courier documents" and so on.

whiplash

whiplash: Click on the button to move theSelected files are moved to the directory corresponding to the buttonThe maximum number of customizable shortcut move buttons is 5.

Why not all buttons, why only 5 buttons? All for the sake of efficiency, the 5 buttons here are the most commonly used directories for managing pictures or screenshots of life, such as: courier receipts, home appliance manuals, bank app screenshots, etc. Too many buttons are also very difficult to find, affecting efficiency.

Move by path list

As shown in the figure labeled ②, thedouble-clickWhen the list item inSelected documentsinvoluntarilyMove to the directory corresponding to the list

The path list is a user-configured list of common paths, and the path list may have many entries (note: the upper limit is untested).

Note: Many path lists will be used as long as enough photos are organized.

Route List Management

increase"Button: In the "Name" edit box, enter the name of the directory, please do not bring special characters, the role of the name is mainly in the addition of shortcut to move the button, you can show the name of the button.

modifications"Button: first select the item you want to modify in the path list, then the "Name" and "Path" edit boxes will be automatically filled with the current data, and the user can modify it according to the actual situation.

removing" button: first select the item to be deleted in the path list and click this button to delete the related directory configuration.

calibrationButton: When the directory on the user's disk has been moved, deleted, renamed, etc., resulting in the directory in the list no longer exists, then you can use the "Verify" button to check which directory entries are incorrect, and need to be modified or deleted, the "Verify" button will be marked by color after execution. After the "Check" button is executed, the wrong items in the list will be marked by color.

move in" button: moves the selected file, to the directory of the selected item in the path list.

Management Shortcut Buttons

bind"Button": first select the path you want to add to the shortcut button in the path list, click the "Bind" button, a button will be added to the "Quick Move" column.

unbundle"Button": If the directory corresponding to a shortcut button is no longer commonly used, you can delete the corresponding button by using the "Unbind" button, and then add a new shortcut button by using the "Bind" button.

🕮 Description
  • Due to limited window space, the maximum number of shortcut move buttons is only 5.
  • When modifying a path, if the path does not exist, an error message will pop up.
Demo Animation
File Categorization: Path and Button Configuration

restoration time

  In this case, after some photos of the early years are transferred through the network (e.g., WeChat, QQ), the original file name of the photo will be lost, and the photo metadata (i.e., EXIF) will be lost, and at this time, the time information on the photo file is only the creation time and modification time of the file, which, due to the continuous transfer of the storage media, will become incapable of corresponding to the time of the real photo, i.e., the time of the photo is 2013, but now the creation time and modification time may become 2024. I.e., the time when the photo was taken is 2013, but now the creation time and modification time may become 2024, and it becomes necessary to repair the real time of these photos before they are forgotten.

  Generally, photos stored locally with time information appended to the "filename"and"metadata"The two places are a little more reliable, try not to rely on the creation time and modify the time to manage the time information of the photo, well now the phone to take pictures of the file name will be the date and time with the metadata is also complete; camera to take pictures of the situation will be a little more complicated, for example: the camera is often changing the battery, change the battery after the camera's date / time is also reset, if you forget to If you forget to reset the date/time of the camera after changing the battery, then the time and date information of the photos taken by the camera will not be allowed, and you have to fix it manually.

🕮 Description
Photo time restoration, often can not be fully restored to the real moment of occurrence, depends on the photo owner's memory, to my experience in dealing with tens of thousands of photos, there is always a small part of the old photos, there is no clues, this time can be restored to the correct month will be good, the time to look at the photo of the light on the scene of their own estimate of a photo for the complete lack of time clues to the photographs, do not have to intentionally pursue the time of the exactness of the photo.
Source of time

input box": the source of the time is the "Time Series" edit box on the right, and the time format isyyyymmddHHMMSS
filename": Time source as file name, e.g. "", "IMG_20240301_130741.jpg".
Modify Time": Some photo file name has no time, metadata also has no time, photo modification time looks more reliable, then use the modification time, this is a compromise, because compared to "file name" and "metadata", "modification time" is the least reliable. This is a compromise, because compared to "filename" and "metadata", "modification time" is the least reliable.
metadata": Metadata is the information embedded in an image that is generally not easily lost and is the most accurate source of time.

🕮 Description
The time source is very important, please be sure to figure out which time is correct, otherwise it will be overwritten and never recovered. When using the "input box" for the time source, there may be a batch of images where the time stamp is added to the filename, and the time stamps of all the files are the same as the ones in the input box, which has two problems:
  • It's not true that no two photos in your camera have the same time stamp.
  • When the file name is regularized to a file such as "IMG_20240301_130741.jpg", a conflict arises because the date and time are all the same.
Therefore.When using the "Input Box" as a time source, be sure to enter a certain time interval in the "Incremental" edit box.
Repair Operation
Fix file creation time

Click the "Repair File Creation Time" button to change the file's "Creation Time" and "Modification Time" to the time in the "Time Source".
Note: Since you are repairing the creation and modification time of a file, the time source cannot be "modification time", it makes no sense to modify it yourself.

File name plus timestamp

Some image files, after being delivered over the network, no longer contain time information in the file name, for example:Sample.jpgand the best filename should be something like:"IMG_20240301_130741.jpg", how do I put time information on the filename?
For example, there are documents, through the look tool or DOpus's own image window, found that the image has no metadata, and the filename appears to be a string of Unix timestamps, so "Source of time"Try to set it to "filename", click the "File name with timestamp" button, the new file name becomes "IMG_20170430_130543_1493528743727.jpg

🕮 Description
The filename plus timestamp does not remove the original filename information, but instead chooses to add a timestamp either before or after it, and if it is preceded by a timestamp, the IMG_ prefix is added.
  • If the photo is clearly daytime, but the timestamp is nighttime, then you can fill in the "offset" amount.
  • The time source of the filename plus timestamp can be from either source.
Repair metadata time

Reminder: Repairing metadata is a high-risk operation, and once the operation is performed incorrectly, the metadata may never be recovered! Please be careful when performing this operation!

⚠️ Note
  • This operation is recommended only if the image metadata does not contain time information(Note: If the image metadata has a time, that time is generally correct and does not need to be changed)
  • The source for fixing metadata time cannot be "metadata", please make sure that the source of the time is correct, especially if you use the input box source.
Regularize picture names

Click "Regularize picture names" button, the filename will be normalized to theIMG_yyyymmdd_HHMMSS.jpgThe format, such as the above "IMG_20170430_130543_1493528743727.jpg" will be regularized to "IMG_20170430_130543.jpg".

Note: Label information will not be cleaned up.

screening

  When you back up your phone pictures to your computer, there are often thousands of pictures in the directory, and a more efficient way to organize these pictures is to organize them by "day", because a day often corresponds to an event, so when you organize the first picture, you want to filter out all the pictures that are on the same day as this picture.

The main screen of the "Filter" function is shown below:

Filtering images from the same day

Select a photo, click the "Same Date" button, the DOpus File Manager window will only display photos with the same date as the file you just selected.

🕮 Description
  • The file is not deleted, the filtering interface of DOpus is only called here, if you want to restore it, just press F5 in the DOpus window.
  • The file name of the photo must be of the form: IMG_yyyymmdd_HHMMSS, or at least contain information in the format yyyymmdd_HHMMSS.

Screening "date and time of the same", "the same month" of the operation and screening "the same date" is similar, and will not be described here.

The "Do not include tags" button is used to filter files that have not had time to add tags, so that the user does not have to look through a pile of files to find where they have not been tagged.

OCR screening

The good news is: you read that right, you can filter the images based on their textual information!

The bad news: by "seeing that"The photo-by-photo call to the API for text recognition was too long for me to wait for this! So the too slow feature was done and removed!

As a remedy, the user is required to move the small hand of fortune, using Umi-OCR for batch text recognition, the operation process is shown in the figure below, because it is too simple to expand here.

Pre-requisites: Umi-OCR Batch Recognition
text filter

  When Umi-OCR batch recognition is complete, it generates an image directory in the[OCR]_XXXXXXXXX_XXXXXXXX_XXXX.txtof the document,"seeing that"It is this file that is read in order to filter images based on text.

Text Filtering Scenarios

  When your cell phone photos and screenshots are backed up to the computer, especially the screenshots will have a lot of information inside, such as: bank payment information, train tickets, etc., you may need to quickly categorize and manage these photos by "seeing that"OCR screening" keyword "bank", you can quickly filter out all the images containing the word "bank".

set up

  It mainly contains file renaming settings, cell phone model management, and classification management, as shown in the following figure:

File Rename Setting

Time of use of documents": The previous section has been introduced, if the option is selected, the user does not need to enter the time when adding labels; while the option is removed, the user needs to manually enter the time, when the time format can be set arbitrarily (Note: Do not enter illegal characters).

Read the file shot from the": as introduced earlier, if checked, the cell phone/camera model in the photo metadata is read when adding tags; and when this option is removed, the user can input the shooter at will (note: don't input illegal characters).

timestamped": As described earlier, this option affects the time fixing feature, when adding a timestamp to a filename, you can choose to put the timestamp at the beginning or the end of the file, and when you put it at the beginning, you will add another "IMG_" prefix in front of the timestamp.

Includes camera vendor name": When reading the cell phone/camera model number in the "Shooter" field, do you want to include the manufacturer's name, e.g. Cannon, Sony, etc. It is recommended not to include it, it is too long!

Cell Phone Model Management

  If you find the "Filmed by" field irritating, and it shows something you can't read, then look it up online and add the relevant ID and name mappings here.

  "Add", "Modify" and "Delete" will not be introduced.

  "Filter" function: if you enter keywords in the "ID" edit box, filter by ID, if you enter keywords in the "Name" edit box, filter by name, if you enter both, still filter by ID. If the keyword is entered in the "ID" edit box, it will be filtered by ID.

  "Import": If the mapping information of the cell phone/camera is saved in a text file, you can add records in batch by "Import".

🕮 Description
  • The phone/camera model number file must be text and the encoding of the text file must beGB2312Otherwise the imported Chinese will be garbled!
category management

  Category management is mainly about adding, deleting and changing, with corresponding buttons, and the modification will take effect immediately when you select the category on the home page.

Known issues

Problem 1: The main window cannot be closed by clicking the "X" button on the title bar.

clarify doubts
Fork off from the title bar can not enter to exit the event, resulting in the inability to automatically save the configuration has been modified, so the title bar of the fork function is blocked, there may be users questioned, since the fork can not be used, why not hide the fork? Why not hide the fork since the fork is not working and let the user see it and then click on it, isn't that redundant? OK, it's not that the author doesn't want to hide it, it's that he didn't find an interface to hide the fork.

alternative
Click the bottom right corner of the window "abort"Button.

replenishment

  “seeing that"It seems to be able to manage video files and audio files as well, users can try it on their own, please remember to back up before you try it, and familiarize yourself with the function before you start the whole job.


Document author's statement: This document is only for learning and communication, without the author's permission, this document may not be used for other purposes.
Copyright © 2022~2024 All rights reserved.