MoleculeRecognize[image]
recognizes a molecule in image and returns it as a Molecule object.


MoleculeRecognize
MoleculeRecognize[image]
recognizes a molecule in image and returns it as a Molecule object.
Details

- MoleculeRecognize works with grayscale and color images.
- Hydrogen atoms not explicitly included in the image are not added to the resulting molecule, but are instead treated as implicit. MoleculeModify["AddHydrogens"][mol] can be used to make them explicit for the molecule mol.
- image should contain one or more 2D structure diagrams, returning a single Molecule object. Use ConnectedMoleculeComponents to retrieve the individual molecules.
- Coordinates detected from the image are stored in the AtomDiagramCoordinates option in the returned expression.
- Stereochemistry depicted by wedged and dashed bonds is automatically detected and stored in the StereochemistryElements option.
Examples
open all close allBasic Examples (2)
Recognize a molecule in an image:
Use MoleculePlot to visualize the result:
Scope (4)
See Also
Molecule ChemicalData MoleculePlot TextRecognize ImageIdentify
Entity Types: Chemical
Function Repository: IUPACName
Related Guides
History
Text
Wolfram Research (2020), MoleculeRecognize, Wolfram Language function, https://reference.wolfram.com/language/ref/MoleculeRecognize.html.
CMS
Wolfram Language. 2020. "MoleculeRecognize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MoleculeRecognize.html.
APA
Wolfram Language. (2020). MoleculeRecognize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MoleculeRecognize.html
BibTeX
@misc{reference.wolfram_2025_moleculerecognize, author="Wolfram Research", title="{MoleculeRecognize}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/MoleculeRecognize.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_moleculerecognize, organization={Wolfram Research}, title={MoleculeRecognize}, year={2020}, url={https://reference.wolfram.com/language/ref/MoleculeRecognize.html}, note=[Accessed: 15-August-2025]}